aboutsummaryrefslogtreecommitdiff
path: root/src/app-menu-item.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-03-15 09:48:32 -0500
committerTed Gould <ted@canonical.com>2009-03-15 09:48:32 -0500
commitc9f60d213f559fdd49e5cc4229658f8b30ad8533 (patch)
treecf7e1481d6e853a2c01d4ba8f5ad2f5dcd88eee7 /src/app-menu-item.h
parent31e467f02e0ad2871258bddcbf7019c4954f9933 (diff)
downloadayatana-indicator-messages-c9f60d213f559fdd49e5cc4229658f8b30ad8533.tar.gz
ayatana-indicator-messages-c9f60d213f559fdd49e5cc4229658f8b30ad8533.tar.bz2
ayatana-indicator-messages-c9f60d213f559fdd49e5cc4229658f8b30ad8533.zip
Adding in an unread count variable, and then a signal to show it chagned. Also, watching for the indicators on this server to make sure it stays correct.
Diffstat (limited to 'src/app-menu-item.h')
-rw-r--r--src/app-menu-item.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app-menu-item.h b/src/app-menu-item.h
index 6d21c57..3a9a4e5 100644
--- a/src/app-menu-item.h
+++ b/src/app-menu-item.h
@@ -36,11 +36,15 @@ 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"
+
typedef struct _AppMenuItem AppMenuItem;
typedef struct _AppMenuItemClass AppMenuItemClass;
struct _AppMenuItemClass {
GtkMenuItemClass parent_class;
+
+ void (* count_changed) (guint count);
};
struct _AppMenuItem {
@@ -49,6 +53,7 @@ struct _AppMenuItem {
GType app_menu_item_get_type (void);
AppMenuItem * app_menu_item_new (IndicateListener * listener, IndicateListenerServer * server);
+guint app_menu_item_get_count (AppMenuItem * appitem);
G_END_DECLS