diff options
author | Ted Gould <ted@gould.cx> | 2013-08-16 16:39:55 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2013-08-16 16:39:55 -0500 |
commit | 7ac72f494336f93e5fe4454f10fb43e5007ba21b (patch) | |
tree | dbc2f3d6389ad4afe67fb0687efd0d07b02280c9 /src | |
parent | 08739c5fe918d9aef5b3f2f8b0e86a2fbed08a7f (diff) | |
download | ayatana-indicator-messages-7ac72f494336f93e5fe4454f10fb43e5007ba21b.tar.gz ayatana-indicator-messages-7ac72f494336f93e5fe4454f10fb43e5007ba21b.tar.bz2 ayatana-indicator-messages-7ac72f494336f93e5fe4454f10fb43e5007ba21b.zip |
Can't clear the sources because that clears the mailboxes
Diffstat (limited to 'src')
-rw-r--r-- | src/im-desktop-menu.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/im-desktop-menu.c b/src/im-desktop-menu.c index e8dff6f..25c83a4 100644 --- a/src/im-desktop-menu.c +++ b/src/im-desktop-menu.c @@ -159,22 +159,6 @@ im_desktop_menu_source_removed (ImApplicationList *applist, g_free (action); } -static void -im_desktop_menu_remove_all (ImApplicationList *applist, - gpointer user_data) -{ - ImDesktopMenu *menu = user_data; - GHashTableIter it; - GMenu *section; - - g_hash_table_iter_init (&it, menu->source_sections); - while (g_hash_table_iter_next (&it, NULL, (gpointer *) §ion)) - { - while (g_menu_model_get_n_items (G_MENU_MODEL (section)) > 0) - g_menu_remove (section, 0); - } -} - static GMenu * create_status_section (void) { @@ -253,7 +237,6 @@ im_desktop_menu_constructed (GObject *object) g_signal_connect (applist, "app-added", G_CALLBACK (im_desktop_menu_app_added), menu); g_signal_connect (applist, "source-added", G_CALLBACK (im_desktop_menu_source_added), menu); g_signal_connect (applist, "source-removed", G_CALLBACK (im_desktop_menu_source_removed), menu); - g_signal_connect (applist, "remove-all", G_CALLBACK (im_desktop_menu_remove_all), menu); G_OBJECT_CLASS (im_desktop_menu_parent_class)->constructed (object); } |