# HG changeset patch # User Richard Laager # Date 1136312420 0 # Node ID 0a4996f15509b9c38e26bb30f1e115c93ab08263 # Parent cf0d9e207cdcb53dd66f11d110efae540c7e633c [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 diff -r cf0d9e207cdc -r 0a4996f15509 plugins/docklet/docklet.c --- 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;