diff options
author | Ted Gould <ted@gould.cx> | 2010-02-17 15:01:13 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-17 15:01:13 -0600 |
commit | 958bb92e0346294d34d7628061faf134f1043621 (patch) | |
tree | 28802d8bfe78dd4fb0a48dac696c8093eef7db23 | |
parent | de7363b6804d843f9c8c9a692297570bf1a19cfe (diff) | |
download | ayatana-indicator-messages-958bb92e0346294d34d7628061faf134f1043621.tar.gz ayatana-indicator-messages-958bb92e0346294d34d7628061faf134f1043621.tar.bz2 ayatana-indicator-messages-958bb92e0346294d34d7628061faf134f1043621.zip |
Adding in a shortcuts changed signal
-rw-r--r-- | src/app-menu-item.c | 8 | ||||
-rw-r--r-- | src/app-menu-item.h | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c index 5d53053..e9ba0f1 100644 --- a/src/app-menu-item.c +++ b/src/app-menu-item.c @@ -34,6 +34,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>. enum { COUNT_CHANGED, NAME_CHANGED, + SHORTCUTS_CHANGED, LAST_SIGNAL }; @@ -96,6 +97,13 @@ app_menu_item_class_init (AppMenuItemClass *klass) NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); + signals[SHORTCUTS_CHANGED] = g_signal_new(APP_MENU_ITEM_SIGNAL_SHORTCUTS_CHANGED, + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (AppMenuItemClass, shortcuts_changed), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0, G_TYPE_NONE); return; } diff --git a/src/app-menu-item.h b/src/app-menu-item.h index fe16c75..48a7cfa 100644 --- a/src/app-menu-item.h +++ b/src/app-menu-item.h @@ -37,8 +37,9 @@ G_BEGIN_DECLS #define IS_APP_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APP_MENU_ITEM_TYPE)) #define APP_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), APP_MENU_ITEM_TYPE, AppMenuItemClass)) -#define APP_MENU_ITEM_SIGNAL_COUNT_CHANGED "count-changed" -#define APP_MENU_ITEM_SIGNAL_NAME_CHANGED "name-changed" +#define APP_MENU_ITEM_SIGNAL_COUNT_CHANGED "count-changed" +#define APP_MENU_ITEM_SIGNAL_NAME_CHANGED "name-changed" +#define APP_MENU_ITEM_SIGNAL_SHORTCUTS_CHANGED "shortcuts-changed" typedef struct _AppMenuItem AppMenuItem; typedef struct _AppMenuItemClass AppMenuItemClass; @@ -48,6 +49,7 @@ struct _AppMenuItemClass { void (* count_changed) (guint count); void (* name_changed) (gchar * name); + void (* shortcuts_changed) (void); }; struct _AppMenuItem { |