comparison src/gtkblist.c @ 9925:4e7590473515

[gaim-migrate @ 10817] this addresses some sf bug, i forget the number. Now if you're going to alias or remove a buddy in a multi-buddy contact, you can tell what the hell you're doing committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 01 Sep 2004 00:46:42 +0000
parents c203312d8224
children e4a27c9aec4c
comparison
equal deleted inserted replaced
9924:872c4d8c1192 9925:4e7590473515
1163 (GaimBlistNode *)buddy); 1163 (GaimBlistNode *)buddy);
1164 gaim_gtk_append_blist_node_extended_menu(menu, (GaimBlistNode *)buddy); 1164 gaim_gtk_append_blist_node_extended_menu(menu, (GaimBlistNode *)buddy);
1165 1165
1166 gaim_separator(menu); 1166 gaim_separator(menu);
1167 1167
1168 gaim_new_item_from_stock(menu, _("_Alias..."), GAIM_STOCK_ALIAS, 1168 if(((GaimBlistNode*)buddy)->parent->child->next) {
1169 G_CALLBACK(gtk_blist_menu_alias_cb), buddy, 0, 0, NULL); 1169 gaim_new_item_from_stock(menu, _("_Alias Buddy..."), GAIM_STOCK_ALIAS,
1170 gaim_new_item_from_stock(menu, _("_Remove"), GTK_STOCK_REMOVE, 1170 G_CALLBACK(gtk_blist_menu_alias_cb), buddy, 0, 0, NULL);
1171 G_CALLBACK(gaim_gtk_blist_remove_cb), buddy, 1171 gaim_new_item_from_stock(menu, _("_Remove Buddy"), GTK_STOCK_REMOVE,
1172 0, 0, NULL); 1172 G_CALLBACK(gaim_gtk_blist_remove_cb), buddy, 0, 0, NULL);
1173 gaim_new_item_from_stock(menu, _("Alias Contact..."), GAIM_STOCK_ALIAS,
1174 G_CALLBACK(gtk_blist_menu_alias_cb),
1175 gaim_buddy_get_contact(buddy), 0, 0, NULL);
1176 gaim_new_item_from_stock(menu, _("Remove Contact"), GTK_STOCK_REMOVE,
1177 G_CALLBACK(gaim_gtk_blist_remove_cb),
1178 gaim_buddy_get_contact(buddy), 0, 0, NULL);
1179 } else {
1180 gaim_new_item_from_stock(menu, _("_Alias..."), GAIM_STOCK_ALIAS,
1181 G_CALLBACK(gtk_blist_menu_alias_cb), buddy, 0, 0, NULL);
1182 gaim_new_item_from_stock(menu, _("_Remove"), GTK_STOCK_REMOVE,
1183 G_CALLBACK(gaim_gtk_blist_remove_cb), buddy,
1184 0, 0, NULL);
1185 }
1173 } 1186 }
1174 1187
1175 static gboolean 1188 static gboolean
1176 gtk_blist_key_press_cb(GtkWidget *tv, GdkEventKey *event, gpointer data) { 1189 gtk_blist_key_press_cb(GtkWidget *tv, GdkEventKey *event, gpointer data) {
1177 GaimBlistNode *node; 1190 GaimBlistNode *node;