aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-object.c1
-rw-r--r--libindicator/indicator-object.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c
index 7a3e393..adaa9ed 100644
--- a/libindicator/indicator-object.c
+++ b/libindicator/indicator-object.c
@@ -257,6 +257,7 @@ indicator_object_init (IndicatorObject *self)
self->priv->module = NULL;
+ self->priv->entry.parent_object = self;
self->priv->entry.menu = NULL;
self->priv->entry.label = NULL;
self->priv->entry.image = NULL;
diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h
index bbc215a..b8b9a8b 100644
--- a/libindicator/indicator-object.h
+++ b/libindicator/indicator-object.h
@@ -152,6 +152,7 @@ struct _IndicatorObject {
/**
IndicatorObjectEntry:
+ @parent_object: The #IndicatorObject that created this entry
@label: The label to be shown on the panel
@image: The image to be shown on the panel
@menu: The menu to be added to the menubar
@@ -166,6 +167,7 @@ struct _IndicatorObject {
@reserved4: Reserved for future use
*/
struct _IndicatorObjectEntry {
+ IndicatorObject * parent_object;
GtkLabel * label;
GtkImage * image;
GtkMenu * menu;