diff options
author | Ted Gould <ted@canonical.com> | 2009-10-08 20:47:19 -0400 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-08 20:47:19 -0400 |
commit | 5144944dbe90e1eaf65bfeedbd6057b858880abc (patch) | |
tree | 545b419abee441ab33903f5224f0c9148e98a47c /libindicator/indicator-object.c | |
parent | fda24e437ad0664e7287237e5bcffcbe15faade4 (diff) | |
download | libayatana-indicator-5144944dbe90e1eaf65bfeedbd6057b858880abc.tar.gz libayatana-indicator-5144944dbe90e1eaf65bfeedbd6057b858880abc.tar.bz2 libayatana-indicator-5144944dbe90e1eaf65bfeedbd6057b858880abc.zip |
Adding some accessor functions for the various GTK objects.
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r-- | libindicator/indicator-object.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index 71e72d8..38847dd 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -175,3 +175,27 @@ unrefandout: g_object_unref(object); return NULL; } + +GtkLabel * +indicator_object_get_label (IndicatorObject * io) +{ + g_return_val_if_fail(IS_INDICATOR_OBJECT(io), NULL); + IndicatorObjectPrivate * priv = INDICATOR_OBJECT_GET_PRIVATE(io); + return priv->label; +} + +GtkImage * +indicator_object_get_icon (IndicatorObject * io) +{ + g_return_val_if_fail(IS_INDICATOR_OBJECT(io), NULL); + IndicatorObjectPrivate * priv = INDICATOR_OBJECT_GET_PRIVATE(io); + return priv->icon; +} + +GtkMenu * +indicator_object_get_menu (IndicatorObject * io) +{ + g_return_val_if_fail(IS_INDICATOR_OBJECT(io), NULL); + IndicatorObjectPrivate * priv = INDICATOR_OBJECT_GET_PRIVATE(io); + return priv->menu; +} |