diff options
Diffstat (limited to 'src/app-indicator.h')
| -rw-r--r-- | src/app-indicator.h | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/app-indicator.h b/src/app-indicator.h index 4ac78f4..0704a9d 100644 --- a/src/app-indicator.h +++ b/src/app-indicator.h @@ -102,6 +102,11 @@ G_BEGIN_DECLS * String identifier for the #AppIndicator::new-label signal. */ /** + * APP_INDICATOR_SIGNAL_NEW_TOOLTIP: + * + * String identifier for the #AppIndicator::new-tooltip signal. + */ +/** * APP_INDICATOR_SIGNAL_CONNECTION_CHANGED: * * String identifier for the #AppIndicator::connection-changed signal. @@ -120,6 +125,7 @@ G_BEGIN_DECLS #define APP_INDICATOR_SIGNAL_NEW_ATTENTION_ICON "new-attention-icon" #define APP_INDICATOR_SIGNAL_NEW_STATUS "new-status" #define APP_INDICATOR_SIGNAL_NEW_LABEL "new-label" +#define APP_INDICATOR_SIGNAL_NEW_TOOLTIP "new-tooltip" #define APP_INDICATOR_SIGNAL_CONNECTION_CHANGED "connection-changed" #define APP_INDICATOR_SIGNAL_NEW_ICON_THEME_PATH "new-icon-theme-path" #define APP_INDICATOR_SIGNAL_SCROLL_EVENT "scroll-event" @@ -180,12 +186,12 @@ typedef struct _AppIndicatorClass AppIndicatorClass; * there is no Application Indicator area available. * @unfallback: The function that gets called if an Application * Indicator area appears after the fallback has been created. + * @new_tooltip: Slot for #AppIndicator::new-tooltip. * @app_indicator_reserved_1: Reserved for future use. * @app_indicator_reserved_2: Reserved for future use. * @app_indicator_reserved_3: Reserved for future use. * @app_indicator_reserved_4: Reserved for future use. * @app_indicator_reserved_5: Reserved for future use. - * @app_indicator_reserved_6: Reserved for future use. * * The signals and external functions that make up the #AppIndicator * class object. @@ -209,7 +215,6 @@ struct _AppIndicatorClass { const gchar *label, const gchar *guide, gpointer user_data); - /* Local Signals */ void (* connection_changed) (AppIndicator * indicator, gboolean connected, @@ -232,13 +237,16 @@ struct _AppIndicatorClass { void (*unfallback) (AppIndicator * indicator, GtkStatusIcon * status_icon); + /* DBus Signals (added with 0.6) */ + void (* new_tooltip) (AppIndicator *indicator, + gpointer user_data); + /* Reserved */ void (*app_indicator_reserved_1)(void); void (*app_indicator_reserved_2)(void); void (*app_indicator_reserved_3)(void); void (*app_indicator_reserved_4)(void); void (*app_indicator_reserved_5)(void); - void (*app_indicator_reserved_6)(void); }; /** @@ -282,6 +290,16 @@ void app_indicator_set_icon (AppIndicator void app_indicator_set_icon_full (AppIndicator *self, const gchar *icon_name, const gchar *icon_desc); +void app_indicator_set_tooltip_icon (AppIndicator *self, + const gchar *icon_name); +void app_indicator_set_tooltip_title (AppIndicator *self, + const gchar *title); +void app_indicator_set_tooltip_body (AppIndicator *self, + const gchar *body); +void app_indicator_set_tooltip_full (AppIndicator *self, + const gchar *icon_name, + const gchar *title, + const gchar *body); void app_indicator_set_label (AppIndicator *self, const gchar *label, const gchar *guide); @@ -306,6 +324,9 @@ const gchar * app_indicator_get_attention_icon_desc (AppIndic const gchar * app_indicator_get_title (AppIndicator *self); GtkMenu * app_indicator_get_menu (AppIndicator *self); +const gchar * app_indicator_get_tooltip_icon (AppIndicator *self); +const gchar * app_indicator_get_tooltip_title (AppIndicator *self); +const gchar * app_indicator_get_tooltip_body (AppIndicator *self); const gchar * app_indicator_get_label (AppIndicator *self); const gchar * app_indicator_get_label_guide (AppIndicator *self); guint32 app_indicator_get_ordering_index (AppIndicator *self); |
