Mercurial > pidgin.yaz
changeset 10484:ec82cbb21fe8
[gaim-migrate @ 11774]
this has been bugging me
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 08 Jan 2005 07:40:31 +0000 |
parents | 748aa3c6de36 |
children | 58ab47ed31bf |
files | src/gtkblist.c src/gtkblist.h |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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); } } }
--- 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.