diff options
author | Ted Gould <ted@gould.cx> | 2010-02-17 15:03:21 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-17 15:03:21 -0600 |
commit | ed9e77cb4d6bf3359138c28153a316ad5418be83 (patch) | |
tree | 2eeeaf4d84d93c425b5a1a98f076fdf1846a9ae2 | |
parent | 958bb92e0346294d34d7628061faf134f1043621 (diff) | |
download | ayatana-indicator-messages-ed9e77cb4d6bf3359138c28153a316ad5418be83.tar.gz ayatana-indicator-messages-ed9e77cb4d6bf3359138c28153a316ad5418be83.tar.bz2 ayatana-indicator-messages-ed9e77cb4d6bf3359138c28153a316ad5418be83.zip |
Emitting the new signal all over the place.
-rw-r--r-- | src/app-menu-item.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c index e9ba0f1..59b435a 100644 --- a/src/app-menu-item.c +++ b/src/app-menu-item.c @@ -292,24 +292,30 @@ desktop_cb (IndicateListener * listener, IndicateListenerServer * server, gchar return; } +/* Relay this signal into causing a rebuild of the shortcuts + from those above us. */ static void child_added_cb (DbusmenuMenuitem * root, DbusmenuMenuitem * child, guint position, gpointer user_data) { - + g_signal_emit(G_OBJECT(user_data), APP_MENU_ITEM_SIGNAL_SHORTCUTS_CHANGED, 0, TRUE); return; } +/* Relay this signal into causing a rebuild of the shortcuts + from those above us. */ static void child_removed_cb (DbusmenuMenuitem * root, DbusmenuMenuitem * child, gpointer user_data) { - + g_signal_emit(G_OBJECT(user_data), APP_MENU_ITEM_SIGNAL_SHORTCUTS_CHANGED, 0, TRUE); return; } +/* Relay this signal into causing a rebuild of the shortcuts + from those above us. */ static void child_moved_cb (DbusmenuMenuitem * root, DbusmenuMenuitem * child, guint newpos, guint oldpos, gpointer user_data) { - + g_signal_emit(G_OBJECT(user_data), APP_MENU_ITEM_SIGNAL_SHORTCUTS_CHANGED, 0, TRUE); return; } @@ -345,8 +351,7 @@ root_changed (DbusmenuClient * client, DbusmenuMenuitem * newroot, gpointer data } if (change_time) { - /* Signal that something has changed */ - change_time = FALSE; + g_signal_emit(G_OBJECT(self), APP_MENU_ITEM_SIGNAL_SHORTCUTS_CHANGED, 0, TRUE); } return; |