# HG changeset patch # User Richard Laager # Date 1131318159 0 # Node ID 969fd533bd5da79a8f296fc0a41555e9c47076af # Parent 9dd895fdafddb4fd31328c4a3cb9f0cc83c75156 [gaim-migrate @ 14288] SF Patch #1348790 from Richard Gobeille "This patch simply doesn't add the separator to the bottom of the buddy pounce menu if you haven't set any pounces up. It looked kind of funny having a lone separator at the bottom that wasn't actually separating anything." committer: Tailor Script diff -r 9dd895fdafdd -r 969fd533bd5d src/gtkpounce.c --- a/src/gtkpounce.c Sun Nov 06 23:01:56 2005 +0000 +++ b/src/gtkpounce.c Sun Nov 06 23:02:39 2005 +0000 @@ -919,10 +919,12 @@ gtk_widget_show(item); /* Separator */ - item = gtk_separator_menu_item_new(); - gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); - gtk_widget_show(item); - + if (has_items) + { + item = gtk_separator_menu_item_new(); + gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + gtk_widget_show(item); + } fill_menu(menu, G_CALLBACK(edit_pounce_cb)); }