aboutsummaryrefslogtreecommitdiff
path: root/src/app-menu-item.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-03-15 12:19:02 -0500
committerTed Gould <ted@canonical.com>2009-03-15 12:19:02 -0500
commit0fdeda8fd1140865e5edafbbf1b87de3a5d17dfa (patch)
treeec984cb4d3dab5a823f910f2be0bca6b2e1ddf4f /src/app-menu-item.h
parente6a8b5ceaa942985c67663da288a68346fea8a38 (diff)
downloadayatana-indicator-messages-0fdeda8fd1140865e5edafbbf1b87de3a5d17dfa.tar.gz
ayatana-indicator-messages-0fdeda8fd1140865e5edafbbf1b87de3a5d17dfa.tar.bz2
ayatana-indicator-messages-0fdeda8fd1140865e5edafbbf1b87de3a5d17dfa.zip
Adding functions to make it so that we can get signaled on name changes and also query them in app-menu-items
Diffstat (limited to 'src/app-menu-item.h')
-rw-r--r--src/app-menu-item.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app-menu-item.h b/src/app-menu-item.h
index 5e012e7..1e1b5eb 100644
--- a/src/app-menu-item.h
+++ b/src/app-menu-item.h
@@ -36,7 +36,8 @@ 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_COUNT_CHANGED "count-changed"
+#define APP_MENU_ITEM_SIGNAL_NAME_CHANGED "name-changed"
typedef struct _AppMenuItem AppMenuItem;
typedef struct _AppMenuItemClass AppMenuItemClass;
@@ -45,6 +46,7 @@ struct _AppMenuItemClass {
GtkMenuItemClass parent_class;
void (* count_changed) (guint count);
+ void (* name_changed) (gchar * name);
};
struct _AppMenuItem {
@@ -55,6 +57,7 @@ GType app_menu_item_get_type (void);
AppMenuItem * app_menu_item_new (IndicateListener * listener, IndicateListenerServer * server);
guint app_menu_item_get_count (AppMenuItem * appitem);
IndicateListenerServer * app_menu_item_get_server (AppMenuItem * appitem);
+const gchar * app_menu_item_get_name (AppMenuItem * appitem);
G_END_DECLS