diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-12-20 17:46:15 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-12-20 17:46:15 +0100 |
commit | dd756106c02cabc79c7429e42ff6658bd37bba6c (patch) | |
tree | d2b3cec61049e1c8851f863d931ca4c706d2158c /src/im-application-list.c | |
parent | 27613150b42e0846f3741e4b4db1b7271b432fad (diff) | |
download | ayatana-indicator-messages-dd756106c02cabc79c7429e42ff6658bd37bba6c.tar.gz ayatana-indicator-messages-dd756106c02cabc79c7429e42ff6658bd37bba6c.tar.bz2 ayatana-indicator-messages-dd756106c02cabc79c7429e42ff6658bd37bba6c.zip |
ImApplicationList: add "remove-all" signal
This is a temporary hack to work around a crash in QMenuModel.
Diffstat (limited to 'src/im-application-list.c')
-rw-r--r-- | src/im-application-list.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index 959a820..9a673c9 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -45,6 +45,7 @@ enum MESSAGE_ADDED, MESSAGE_REMOVED, APP_STOPPED, + REMOVE_ALL, N_SIGNALS }; @@ -251,6 +252,8 @@ im_application_list_remove_all (GSimpleAction *action, GHashTableIter iter; Application *app; + g_signal_emit (list, signals[REMOVE_ALL], 0); + g_hash_table_iter_init (&iter, list->applications); while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &app)) { @@ -377,6 +380,15 @@ im_application_list_class_init (ImApplicationListClass *klass) G_TYPE_NONE, 1, G_TYPE_STRING); + + signals[REMOVE_ALL] = g_signal_new ("remove-all", + IM_TYPE_APPLICATION_LIST, + G_SIGNAL_RUN_FIRST, + 0, + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, + 0); } static void |