Tue, 03 Jan 2006 18:20:20 +0000
[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;