diff options
| author | Guido Berhoerster <guido+ayatana@berhoerster.name> | 2021-03-01 23:58:34 +0100 |
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2026-06-10 09:58:09 +0200 |
| commit | bfef7f60d6af13f8ae5cd733a7d61f47766e9d27 (patch) | |
| tree | 46403e38d9f63c70354cd3ff4479e49151e63156 /src/app-indicator.h | |
| parent | 808727b9b49328d8e46097fccdd1614de774ed00 (diff) | |
| download | libayatana-appindicator-bfef7f60d6af13f8ae5cd733a7d61f47766e9d27.tar.gz libayatana-appindicator-bfef7f60d6af13f8ae5cd733a7d61f47766e9d27.tar.bz2 libayatana-appindicator-bfef7f60d6af13f8ae5cd733a7d61f47766e9d27.zip | |
Add support for tooltips
An icon, title and text body may be set independently or at once resulting in a
single signal. Markup in the text body is not supported for simplicity.
Diffstat (limited to 'src/app-indicator.h')
| -rw-r--r-- | src/app-indicator.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/app-indicator.h b/src/app-indicator.h index 4ac78f4..7709f3c 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,6 +186,7 @@ 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. @@ -209,6 +216,8 @@ struct _AppIndicatorClass { const gchar *label, const gchar *guide, gpointer user_data); + void (* new_tooltip) (AppIndicator *indicator, + gpointer user_data); /* Local Signals */ void (* connection_changed) (AppIndicator * indicator, @@ -282,6 +291,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 +325,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); |
