comparison pidgin/gtkblist.c @ 15558:dad51c0e3bc6

context menu cleanup
author Sean Egan <seanegan@gmail.com>
date Mon, 05 Feb 2007 10:04:31 +0000
parents 0324f69112f9
children 442128853bdb
comparison
equal deleted inserted replaced
15557:0324f69112f9 15558:dad51c0e3bc6
1072 G_CALLBACK(gtk_blist_menu_send_file_cb), 1072 G_CALLBACK(gtk_blist_menu_send_file_cb),
1073 buddy, 0, 0, NULL); 1073 buddy, 0, 0, NULL);
1074 } 1074 }
1075 } 1075 }
1076 1076
1077 pidgin_new_item_from_stock(menu, _("Add Buddy _Pounce"), PIDGIN_STOCK_POUNCE, 1077 pidgin_new_item_from_stock(menu, _("Add Buddy _Pounce"), NULL,
1078 G_CALLBACK(gtk_blist_menu_bp_cb), buddy, 0, 0, NULL); 1078 G_CALLBACK(gtk_blist_menu_bp_cb), buddy, 0, 0, NULL);
1079 1079
1080 if(((GaimBlistNode*)buddy)->parent->child->next && !sub && !contact_expanded) { 1080 if(((GaimBlistNode*)buddy)->parent->child->next && !sub && !contact_expanded) {
1081 pidgin_new_item_from_stock(menu, _("View _Log"), PIDGIN_STOCK_LOG, 1081 pidgin_new_item_from_stock(menu, _("View _Log"), PIDGIN_STOCK_LOG,
1082 G_CALLBACK(gtk_blist_menu_showlog_cb), 1082 G_CALLBACK(gtk_blist_menu_showlog_cb),
1083 contact, 0, 0, NULL); 1083 contact, 0, 0, NULL);
1084 } else if (!sub) { 1084 } else if (!sub) {
1085 pidgin_new_item_from_stock(menu, _("View _Log"), PIDGIN_STOCK_LOG, 1085 pidgin_new_item_from_stock(menu, _("View _Log"), NULL,
1086 G_CALLBACK(gtk_blist_menu_showlog_cb), buddy, 0, 0, NULL); 1086 G_CALLBACK(gtk_blist_menu_showlog_cb), buddy, 0, 0, NULL);
1087 } 1087 }
1088 1088
1089 pidgin_append_blist_node_privacy_menu(menu, (GaimBlistNode *)buddy);
1090 1089
1091 pidgin_append_blist_node_proto_menu(menu, buddy->account->gc, 1090 pidgin_append_blist_node_proto_menu(menu, buddy->account->gc,
1092 (GaimBlistNode *)buddy); 1091 (GaimBlistNode *)buddy);
1093 pidgin_append_blist_node_extended_menu(menu, (GaimBlistNode *)buddy); 1092 pidgin_append_blist_node_extended_menu(menu, (GaimBlistNode *)buddy);
1094 1093
1095 if (((GaimBlistNode*)buddy)->parent->child->next && !sub && !contact_expanded) { 1094 if (((GaimBlistNode*)buddy)->parent->child->next && !sub && !contact_expanded) {
1096 pidgin_separator(menu); 1095 pidgin_separator(menu);
1097 1096 pidgin_append_blist_node_privacy_menu(menu, (GaimBlistNode *)buddy);
1098 pidgin_new_item_from_stock(menu, _("Alias..."), PIDGIN_STOCK_ALIAS, 1097 pidgin_new_item_from_stock(menu, _("Alias..."), PIDGIN_STOCK_ALIAS,
1099 G_CALLBACK(gtk_blist_menu_alias_cb), 1098 G_CALLBACK(gtk_blist_menu_alias_cb),
1100 contact, 0, 0, NULL); 1099 contact, 0, 0, NULL);
1101 pidgin_new_item_from_stock(menu, _("Remove"), GTK_STOCK_REMOVE, 1100 pidgin_new_item_from_stock(menu, _("Remove"), GTK_STOCK_REMOVE,
1102 G_CALLBACK(pidgin_blist_remove_cb), 1101 G_CALLBACK(pidgin_blist_remove_cb),
1103 contact, 0, 0, NULL); 1102 contact, 0, 0, NULL);
1104 } else if (!sub || contact_expanded) { 1103 } else if (!sub || contact_expanded) {
1105 pidgin_separator(menu); 1104 pidgin_separator(menu);
1106 1105 pidgin_append_blist_node_privacy_menu(menu, (GaimBlistNode *)buddy);
1107 pidgin_new_item_from_stock(menu, _("_Alias..."), PIDGIN_STOCK_ALIAS, 1106 pidgin_new_item_from_stock(menu, _("_Alias..."), PIDGIN_STOCK_ALIAS,
1108 G_CALLBACK(gtk_blist_menu_alias_cb), buddy, 0, 0, NULL); 1107 G_CALLBACK(gtk_blist_menu_alias_cb), buddy, 0, 0, NULL);
1109 pidgin_new_item_from_stock(menu, _("_Remove"), GTK_STOCK_REMOVE, 1108 pidgin_new_item_from_stock(menu, _("_Remove"), GTK_STOCK_REMOVE,
1110 G_CALLBACK(pidgin_blist_remove_cb), buddy, 1109 G_CALLBACK(pidgin_blist_remove_cb), buddy,
1111 0, 0, NULL); 1110 0, 0, NULL);