[gaim-migrate @ 15044]

Tue, 03 Jan 2006 18:20:20 +0000

author
Casey Harkins <charkins@pidgin.im>
date
Tue, 03 Jan 2006 18:20:20 +0000
changeset 12701
f986ec69ef3b
parent 12700
18c264976a45
child 12702
fbd3bef47358

[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: Richard Laager <rlaager@pidgin.im>

plugins/docklet/docklet.c file | annotate | diff | comparison | revisions
--- 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;

mercurial