diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-06-28 17:50:12 -0400 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-06-28 17:50:12 -0400 |
commit | 4ec8c2f614424a4d6ceb716f55320f1d81fd70b8 (patch) | |
tree | a143b5c8d3348d61ab6ca27db32a643ac2a84a62 /libindicator/indicator-object.h | |
parent | 3470db7e3e7df1c4490f9faa3eb2df7df9a630eb (diff) | |
parent | e7e2b6357c8b4f1dade9c4e4be9b193d747626e2 (diff) | |
download | libayatana-indicator-4ec8c2f614424a4d6ceb716f55320f1d81fd70b8.tar.gz libayatana-indicator-4ec8c2f614424a4d6ceb716f55320f1d81fd70b8.tar.bz2 libayatana-indicator-4ec8c2f614424a4d6ceb716f55320f1d81fd70b8.zip |
Add support for indicators to tell the panel where they'd like to appear
Merged from lp:~larsu/libindicator/positionable
Diffstat (limited to 'libindicator/indicator-object.h')
-rw-r--r-- | libindicator/indicator-object.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h index 3c1a203..5c8de4b 100644 --- a/libindicator/indicator-object.h +++ b/libindicator/indicator-object.h @@ -111,6 +111,7 @@ typedef struct _IndicatorObjectEntry IndicatorObjectEntry; @show_now_changed: Slot for #IndicatorObject::show-now-changed @accessible_desc_update: Slot for #IndicatorObject::accessible-desc-update @secondary_activate: Slot for #IndicatorObject::secondary-activate + @get_position: returns the desired position on the panel (0 is right-most), or -1 */ struct _IndicatorObjectClass { GObjectClass parent_class; @@ -143,12 +144,13 @@ struct _IndicatorObjectClass { void (*accessible_desc_update) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data); void (*secondary_activate) (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp, gpointer user_data); + gint (*get_position) (IndicatorObject *io); + /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); - void (*reserved5) (void); }; /** @@ -203,6 +205,7 @@ gboolean indicator_object_entry_is_visible (IndicatorObject * io, IndicatorObjec void indicator_object_entry_activate (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp); void indicator_object_entry_activate_window (IndicatorObject * io, IndicatorObjectEntry * entry, guint windowid, guint timestamp); void indicator_object_entry_close (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp); +gint indicator_object_get_position (IndicatorObject *io); void indicator_object_set_environment (IndicatorObject * io, GStrv env); GStrv indicator_object_get_environment (IndicatorObject * io); |