changeset 11995:969fd533bd5d

[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 <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Sun, 06 Nov 2005 23:02:39 +0000
parents 9dd895fdafdd
children ecd33ffb0b0a
files src/gtkpounce.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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));
 }