aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-02-13 17:18:53 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-02-13 17:18:53 +0100
commit9affd1f62c4813c0b9e055f7ca5062cab7f46437 (patch)
tree579562d68426fbd70edcb6cd888e39524d3cb07f
parent759fdd8e61a90a0c13ccd0d1f2665507fd7d00e7 (diff)
downloadlibayatana-indicator-9affd1f62c4813c0b9e055f7ca5062cab7f46437.tar.gz
libayatana-indicator-9affd1f62c4813c0b9e055f7ca5062cab7f46437.tar.bz2
libayatana-indicator-9affd1f62c4813c0b9e055f7ca5062cab7f46437.zip
IndicatorObject: add parent_window parameter to IndicatorEntry
-rw-r--r--libindicator/indicator-object.c5
-rw-r--r--libindicator/indicator-object.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c
index 40f114e..0a1a04e 100644
--- a/libindicator/indicator-object.c
+++ b/libindicator/indicator-object.c
@@ -314,6 +314,7 @@ indicator_object_init (IndicatorObject *self)
priv->entry.image = NULL;
priv->entry.accessible_desc = NULL;
priv->entry.name_hint = NULL;
+ priv->entry.parent_window = 0;
priv->gotten_entries = FALSE;
priv->default_visibility = TRUE;
@@ -527,6 +528,10 @@ get_entries_default (IndicatorObject * io)
priv->entry.name_hint = class->get_name_hint(io);
}
+ if (class->get_parent_window) {
+ priv->entry.parent_window = class->get_parent_window(io);
+ }
+
priv->gotten_entries = TRUE;
}
diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h
index 5c8de4b..e542c0d 100644
--- a/libindicator/indicator-object.h
+++ b/libindicator/indicator-object.h
@@ -145,12 +145,12 @@ struct _IndicatorObjectClass {
void (*secondary_activate) (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp, gpointer user_data);
gint (*get_position) (IndicatorObject *io);
+ guint (*get_parent_window) (IndicatorObject *io);
/* Reserved */
void (*reserved1) (void);
void (*reserved2) (void);
void (*reserved3) (void);
- void (*reserved4) (void);
};
/**
@@ -174,11 +174,11 @@ struct _IndicatorObject {
of the indicator
@name_hint: A name to describe the indicator being placed to allow
the caller to be more aware of the individual entries.
+ @parent_window: the id of the parent window of the indicator entry (if any).
@reserved1: Reserved for future use
@reserved2: Reserved for future use
@reserved3: Reserved for future use
- @reserved4: Reserved for future use
*/
struct _IndicatorObjectEntry {
IndicatorObject * parent_object;
@@ -187,11 +187,11 @@ struct _IndicatorObjectEntry {
GtkMenu * menu;
const gchar * accessible_desc;
const gchar * name_hint;
+ guint parent_window;
void (*reserved1) (void);
void (*reserved2) (void);
void (*reserved3) (void);
- void (*reserved4) (void);
};
GType indicator_object_get_type (void);