pidgin/gtkblist.c

changeset 18185
d4f1719d812b
parent 18178
d461ccafa1fb
parent 17879
3e3f85138f1a
child 18193
a1939279bed1
equal deleted inserted replaced
18184:26a92816b762 18185:d4f1719d812b
4232 {"text/plain", 0, DRAG_TEXT}}; 4232 {"text/plain", 0, DRAG_TEXT}};
4233 GtkTargetEntry ste[] = {{"PURPLE_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW}, 4233 GtkTargetEntry ste[] = {{"PURPLE_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW},
4234 {"application/x-im-contact", 0, DRAG_BUDDY}, 4234 {"application/x-im-contact", 0, DRAG_BUDDY},
4235 {"text/x-vcard", 0, DRAG_VCARD }}; 4235 {"text/x-vcard", 0, DRAG_VCARD }};
4236 if (gtkblist && gtkblist->window) { 4236 if (gtkblist && gtkblist->window) {
4237 purple_blist_set_visible(TRUE); 4237 purple_blist_set_visible(purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/list_visible"));
4238 return; 4238 return;
4239 } 4239 }
4240 4240
4241 gtkblist = PIDGIN_BLIST(list); 4241 gtkblist = PIDGIN_BLIST(list);
4242 4242
5028 { 5028 {
5029 PurpleBlistNode *cnode; 5029 PurpleBlistNode *cnode;
5030 PurpleContact *contact; 5030 PurpleContact *contact;
5031 PurpleBuddy *buddy; 5031 PurpleBuddy *buddy;
5032 struct _pidgin_blist_node *gtknode; 5032 struct _pidgin_blist_node *gtknode;
5033
5033 if (editing_blist) 5034 if (editing_blist)
5034 return; 5035 return;
5035 5036
5036 if (PURPLE_BLIST_NODE_IS_BUDDY(node)) 5037 if (PURPLE_BLIST_NODE_IS_BUDDY(node))
5037 cnode = node->parent; 5038 cnode = node->parent;
5126 static void pidgin_blist_update_chat(PurpleBuddyList *list, PurpleBlistNode *node) 5127 static void pidgin_blist_update_chat(PurpleBuddyList *list, PurpleBlistNode *node)
5127 { 5128 {
5128 PurpleChat *chat; 5129 PurpleChat *chat;
5129 5130
5130 g_return_if_fail(PURPLE_BLIST_NODE_IS_CHAT(node)); 5131 g_return_if_fail(PURPLE_BLIST_NODE_IS_CHAT(node));
5132
5131 if (editing_blist) 5133 if (editing_blist)
5132 return; 5134 return;
5133 5135
5134 /* First things first, update the group */ 5136 /* First things first, update the group */
5135 pidgin_blist_update_group(list, node->parent); 5137 pidgin_blist_update_group(list, node->parent);
6734 gtk_widget_show(menuitem); 6736 gtk_widget_show(menuitem);
6735 } 6737 }
6736 if (activeitem) 6738 if (activeitem)
6737 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(activeitem), TRUE); 6739 gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(activeitem), TRUE);
6738 } 6740 }
6741

mercurial