From e5b4e41bb3b71899ecc2e22fd3d8ce4badfd02ae Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 23 Feb 2011 22:03:23 -0600 Subject: Fixing up the get functions --- src/app-indicator.c | 50 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/app-indicator.c b/src/app-indicator.c index d75fce0..4f09e60 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -2044,6 +2044,22 @@ app_indicator_get_icon (AppIndicator *self) return self->priv->icon_name; } +/** + app_indicator_get_icon_desc: + @self: The #AppIndicator object to use + + Wrapper function for property #AppIndicator:icon-desc. + + Return value: The current icon description. +*/ +const gchar * +app_indicator_get_icon_desc (AppIndicator *self) +{ + g_return_val_if_fail (IS_APP_INDICATOR (self), NULL); + + return self->priv->accessible_desc; +} + /** app_indicator_get_icon_theme_path: @self: The #AppIndicator object to use @@ -2076,6 +2092,22 @@ app_indicator_get_attention_icon (AppIndicator *self) return self->priv->attention_icon_name; } +/** + app_indicator_get_attention_icon_desc: + @self: The #AppIndicator object to use + + Wrapper function for property #AppIndicator:attention-icon-desc. + + Return value: The current attention icon description. +*/ +const gchar * +app_indicator_get_attention_icon_desc (AppIndicator *self) +{ + g_return_val_if_fail (IS_APP_INDICATOR (self), NULL); + + return self->priv->att_accessible_desc; +} + /** app_indicator_get_menu: @self: The #AppIndicator object to use @@ -2083,7 +2115,7 @@ app_indicator_get_attention_icon (AppIndicator *self) Gets the menu being used for this application indicator. Wrapper function for property #AppIndicator:menu. - Return value: A #GtkMenu object or %NULL if one hasn't been set. + Return value: (transfer none): A #GtkMenu object or %NULL if one hasn't been set. */ GtkMenu * app_indicator_get_menu (AppIndicator *self) @@ -2129,22 +2161,6 @@ app_indicator_get_label_guide (AppIndicator *self) return self->priv->label_guide; } -/** - app_indicator_get_accessible_desc: - @self: The #AppIndicator object to use - - Wrapper function for property #AppIndicator:accessible_desc. - - Return value: The current accessible description. -*/ -const gchar * -app_indicator_get_accessible_desc (AppIndicator *self) -{ - g_return_val_if_fail (IS_APP_INDICATOR (self), NULL); - - return self->priv->accessible_desc; -} - /** app_indicator_get_ordering_index: @self: The #AppIndicator object to use -- cgit v1.2.3