changeset 12701:0a4996f15509

[gaim-migrate @ 15044] SF Patch #1396122 from Casey Harkins "This is a simple patch which will hide the extra separator in the popular statuses section when there are no popular statuses. Prevents the double separators." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 03 Jan 2006 18:20:20 +0000
parents cf0d9e207cdc
children ba7834d6e2c9
files plugins/docklet/docklet.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/docklet/docklet.c	Tue Jan 03 18:16:04 2006 +0000
+++ b/plugins/docklet/docklet.c	Tue Jan 03 18:20:20 2006 +0000
@@ -420,9 +420,9 @@
 	gaim_new_item_from_stock(menu, _("Custom Status..."), GAIM_STOCK_ICON_AWAY, G_CALLBACK(show_custom_status_editor_cb), NULL, 0, 0, NULL);
 	gaim_new_item_from_stock(menu, _("Saved Status..."), GAIM_STOCK_ICON_AWAY, G_CALLBACK(gaim_gtk_status_window_show), NULL, 0, 0, NULL);
 
-	gaim_separator(menu);
-
 	popular_statuses = gaim_savedstatuses_get_popular(6);
+	if (popular_statuses != NULL)
+		gaim_separator(menu);
 	for (cur = popular_statuses; cur != NULL; cur = cur->next)
 	{
 		GaimSavedStatus *saved_status = cur->data;