# HG changeset patch # User Nathan Walp # Date 1105170031 0 # Node ID ec82cbb21fe8ddf962768d13bbd4b11c58d0d089 # Parent 748aa3c6de369aa4cfca5904544f56c6b0fedc03 [gaim-migrate @ 11774] this has been bugging me committer: Tailor Script diff -r 748aa3c6de36 -r ec82cbb21fe8 src/gtkblist.c --- a/src/gtkblist.c Sat Jan 08 07:25:37 2005 +0000 +++ b/src/gtkblist.c Sat Jan 08 07:40:31 2005 +0000 @@ -1132,7 +1132,7 @@ void -gaim_gtk_blist_make_buddy_menu(GtkWidget *menu, GaimBuddy *buddy) { +gaim_gtk_blist_make_buddy_menu(GtkWidget *menu, GaimBuddy *buddy, gboolean sub) { GaimPluginProtocolInfo *prpl_info; g_return_if_fail(menu); @@ -1167,7 +1167,7 @@ gaim_separator(menu); - if(((GaimBlistNode*)buddy)->parent->child->next) { + if(((GaimBlistNode*)buddy)->parent->child->next && !sub) { gaim_new_item_from_stock(menu, _("_Alias Buddy..."), GAIM_STOCK_ALIAS, G_CALLBACK(gtk_blist_menu_alias_cb), buddy, 0, 0, NULL); gaim_new_item_from_stock(menu, _("_Remove Buddy"), GTK_STOCK_REMOVE, @@ -1298,7 +1298,7 @@ gboolean show_offline = gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies"); menu = gtk_menu_new(); - gaim_gtk_blist_make_buddy_menu(menu, b); + gaim_gtk_blist_make_buddy_menu(menu, b, FALSE); if(GAIM_BLIST_NODE_IS_CONTACT(node)) { gaim_separator(menu); @@ -1345,7 +1345,7 @@ gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); gtk_widget_show(submenu); - gaim_gtk_blist_make_buddy_menu(submenu, buddy); + gaim_gtk_blist_make_buddy_menu(submenu, buddy, TRUE); } } } diff -r 748aa3c6de36 -r ec82cbb21fe8 src/gtkblist.h --- a/src/gtkblist.h Sat Jan 08 07:25:37 2005 +0000 +++ b/src/gtkblist.h Sat Jan 08 07:40:31 2005 +0000 @@ -135,8 +135,9 @@ * * @param menu The menu to populate * @param buddy The buddy who's menu to get + * @param sub TRUE if this is a sub-menu, FALSE otherwise */ -void gaim_gtk_blist_make_buddy_menu(GtkWidget *menu, GaimBuddy *buddy); +void gaim_gtk_blist_make_buddy_menu(GtkWidget *menu, GaimBuddy *buddy, gboolean sub); /** * Refreshes all the nodes of the buddy list.