From ed9e77cb4d6bf3359138c28153a316ad5418be83 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 17 Feb 2010 15:03:21 -0600 Subject: Emitting the new signal all over the place. --- src/app-menu-item.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src') 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; -- cgit v1.2.3