aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-01-04 10:13:15 -0600
committerTed Gould <ted@gould.cx>2011-01-04 10:13:15 -0600
commit18a5e647a83954ed487e085a3f682d5b62c1e751 (patch)
tree284c7281d51f05832b6115beefc314030118820f /libindicator
parent7d8375c7694f91fb05f72cf175a0a0219ba19bb1 (diff)
downloadlibayatana-indicator-18a5e647a83954ed487e085a3f682d5b62c1e751.tar.gz
libayatana-indicator-18a5e647a83954ed487e085a3f682d5b62c1e751.tar.bz2
libayatana-indicator-18a5e647a83954ed487e085a3f682d5b62c1e751.zip
Adding a show now state to indicate priority.
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h
index 79f4757..1d3f4e9 100644
--- a/libindicator/indicator-object.h
+++ b/libindicator/indicator-object.h
@@ -78,10 +78,14 @@ typedef struct _IndicatorObjectEntry IndicatorObjectEntry;
@get_location: Returns the location that a particular entry
should be placed in. This is really only relevant for
indicators that have more than one entry.
+ @get_show_now: Returns whether the entry is requesting to
+ be shown "right now" in that it has something important
+ to tell the user.
@entry_added: Slot for #IndicatorObject::entry-added
@entry_removed: Slot for #IndicatorObject::entry-removed
@entry_moved: Slot for #IndicatorObject::entry-moved
@menu_show: Slot for #IndicatorObject::menu-show
+ @show_now_changed: Slot for #IndicatorObject::show-now-changed
*/
struct _IndicatorObjectClass {
GObjectClass parent_class;
@@ -93,6 +97,7 @@ struct _IndicatorObjectClass {
GList * (*get_entries) (IndicatorObject * io);
guint (*get_location) (IndicatorObject * io, IndicatorObjectEntry * entry);
+ gboolean (*get_show_now) (IndicatorObject * io, IndicatorObjectEntry * entry);
void (*entry_activate) (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp);
@@ -102,6 +107,7 @@ struct _IndicatorObjectClass {
void (*entry_moved) (IndicatorObject * io, IndicatorObjectEntry * entry, guint old_pos, guint new_pos, gpointer user_data);
void (*scroll) (IndicatorObject * io, gint delta, IndicatorScrollDirection direction);
void (*menu_show) (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp, gpointer user_data);
+ void (*show_now_changed) (IndicatorObject * io, IndicatorObjectEntry * entry, gboolean show_now_state, gpointer user_data);
/* Reserved */
void (*reserved1) (void);