aboutsummaryrefslogtreecommitdiff
path: root/src/libappindicator/app-indicator.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-13 16:23:08 -0600
committerTed Gould <ted@gould.cx>2010-01-13 16:23:08 -0600
commit9489aa2cbda25bb1ed87e87d2fcf550ac0b6142a (patch)
tree358272a40233edece65e4e5d2d64b9f97410d136 /src/libappindicator/app-indicator.c
parentbf390ec6d9aa02fe5fed6278f6f9bb249557e210 (diff)
downloadayatana-indicator-application-9489aa2cbda25bb1ed87e87d2fcf550ac0b6142a.tar.gz
ayatana-indicator-application-9489aa2cbda25bb1ed87e87d2fcf550ac0b6142a.tar.bz2
ayatana-indicator-application-9489aa2cbda25bb1ed87e87d2fcf550ac0b6142a.zip
Adding in a get_menu function.
Diffstat (limited to 'src/libappindicator/app-indicator.c')
-rw-r--r--src/libappindicator/app-indicator.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/libappindicator/app-indicator.c b/src/libappindicator/app-indicator.c
index e38e760..4852633 100644
--- a/src/libappindicator/app-indicator.c
+++ b/src/libappindicator/app-indicator.c
@@ -776,7 +776,7 @@ fallback (AppIndicator * self)
static void
status_icon_activate (GtkStatusIcon * icon, gpointer data)
{
- g_debug("Status Icon Activate");
+
return;
}
@@ -1267,3 +1267,23 @@ app_indicator_get_attention_icon (AppIndicator *self)
return self->priv->attention_icon_name;
}
+
+/**
+ app_indicator_get_menu:
+ @self: The #AppIndicator object to use
+
+ Gets the menu being used for this application indicator.
+
+ Return value: A menu object or #NULL if one hasn't been set.
+*/
+GtkMenu *
+app_indicator_get_menu (AppIndicator *self)
+{
+ AppIndicatorPrivate *priv;
+
+ g_return_val_if_fail (IS_APP_INDICATOR (self), NULL);
+
+ priv = self->priv;
+
+ return GTK_MENU(priv->menu);
+}