aboutsummaryrefslogtreecommitdiff
path: root/src/im-menu-item.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-03-18 13:21:21 -0500
committerTed Gould <ted@canonical.com>2009-03-18 13:21:21 -0500
commit1cf60571c0663efc4eab8e3c94002e521490a206 (patch)
tree666a927409394482bd345643ade84641bd5c50b5 /src/im-menu-item.h
parent8d5f26a09d68bf02cd08745f7333a38171f4d466 (diff)
downloadayatana-indicator-messages-1cf60571c0663efc4eab8e3c94002e521490a206.tar.gz
ayatana-indicator-messages-1cf60571c0663efc4eab8e3c94002e521490a206.tar.bz2
ayatana-indicator-messages-1cf60571c0663efc4eab8e3c94002e521490a206.zip
Putting the seconds into the private structure, a function to get them, and a signal when they change.
Diffstat (limited to 'src/im-menu-item.h')
-rw-r--r--src/im-menu-item.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/im-menu-item.h b/src/im-menu-item.h
index a70f55a..34da453 100644
--- a/src/im-menu-item.h
+++ b/src/im-menu-item.h
@@ -36,11 +36,15 @@ G_BEGIN_DECLS
#define IS_IM_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IM_MENU_ITEM_TYPE))
#define IM_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IM_MENU_ITEM_TYPE, ImMenuItemClass))
+#define IM_MENU_ITEM_SIGNAL_TIME_CHANGED "time-changed"
+
typedef struct _ImMenuItem ImMenuItem;
typedef struct _ImMenuItemClass ImMenuItemClass;
struct _ImMenuItemClass {
GtkMenuItemClass parent_class;
+
+ void (*time_changed) (glong seconds);
};
struct _ImMenuItem {
@@ -49,6 +53,7 @@ struct _ImMenuItem {
GType im_menu_item_get_type (void);
ImMenuItem * im_menu_item_new (IndicateListener * listener, IndicateListenerServer * server, IndicateListenerIndicator * indicator);
+glong im_menu_item_get_seconds (ImMenuItem * menuitem);
G_END_DECLS