pidgin/gtkconv.c

branch
soc.2013.gobjectification
changeset 34739
7d507b8b9f92
parent 34728
8efd73063ecf
child 34746
dc9c911dbd35
equal deleted inserted replaced
34738:10445c2f584c 34739:7d507b8b9f92
3283 g_free, g_free); 3283 g_free, g_free);
3284 g_hash_table_replace(components, g_strdup("channel"), 3284 g_hash_table_replace(components, g_strdup("channel"),
3285 g_strdup(purple_conversation_get_name(conv))); 3285 g_strdup(purple_conversation_get_name(conv)));
3286 } 3286 }
3287 chat = purple_chat_new(account, NULL, components); 3287 chat = purple_chat_new(account, NULL, components);
3288 purple_blist_node_set_flags((PurpleBListNode *)chat, 3288 purple_blist_node_set_dont_save((PurpleBListNode *)chat, TRUE);
3289 PURPLE_BLIST_NODE_FLAG_NO_SAVE);
3290 g_object_set_data_full(G_OBJECT(gtkconv->webview), "transient_chat", 3289 g_object_set_data_full(G_OBJECT(gtkconv->webview), "transient_chat",
3291 chat, (GDestroyNotify)purple_blist_remove_chat); 3290 chat, (GDestroyNotify)purple_blist_remove_chat);
3292 } 3291 }
3293 } else { 3292 } else {
3294 if (!purple_account_is_connected(account)) 3293 if (!purple_account_is_connected(account))
3298 if (!buddy && gtkconv->webview) { 3297 if (!buddy && gtkconv->webview) {
3299 buddy = g_object_get_data(G_OBJECT(gtkconv->webview), "transient_buddy"); 3298 buddy = g_object_get_data(G_OBJECT(gtkconv->webview), "transient_buddy");
3300 3299
3301 if (!buddy) { 3300 if (!buddy) {
3302 buddy = purple_buddy_new(account, purple_conversation_get_name(conv), NULL); 3301 buddy = purple_buddy_new(account, purple_conversation_get_name(conv), NULL);
3303 purple_blist_node_set_flags((PurpleBListNode *)buddy, 3302 purple_blist_node_set_dont_save((PurpleBListNode *)buddy, TRUE);
3304 PURPLE_BLIST_NODE_FLAG_NO_SAVE);
3305 g_object_set_data_full(G_OBJECT(gtkconv->webview), "transient_buddy", 3303 g_object_set_data_full(G_OBJECT(gtkconv->webview), "transient_buddy",
3306 buddy, (GDestroyNotify)purple_buddy_destroy); 3304 buddy, (GDestroyNotify)g_object_unref);
3307 } 3305 }
3308 } 3306 }
3309 } 3307 }
3310 3308
3311 if (chat) 3309 if (chat)

mercurial