aboutsummaryrefslogtreecommitdiff
path: root/src/app-indicator.h
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2026-06-10 17:23:31 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2026-06-10 17:23:31 +0200
commit13fa5796c545355c87e19b6f2b91e4576f498b5e (patch)
tree46403e38d9f63c70354cd3ff4479e49151e63156 /src/app-indicator.h
parent0a1de62141772e44813a39a36f659d49a54c2e4b (diff)
parentbfef7f60d6af13f8ae5cd733a7d61f47766e9d27 (diff)
downloadlibayatana-appindicator-13fa5796c545355c87e19b6f2b91e4576f498b5e.tar.gz
libayatana-appindicator-13fa5796c545355c87e19b6f2b91e4576f498b5e.tar.bz2
libayatana-appindicator-13fa5796c545355c87e19b6f2b91e4576f498b5e.zip
Merge branch 'sunweaver-pr/tooltip-support'
Attributes GH PR #5: https://github.com/AyatanaIndicators/libayatana-appindicator/pull/5
Diffstat (limited to 'src/app-indicator.h')
-rw-r--r--src/app-indicator.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/app-indicator.h b/src/app-indicator.h
index b53b7fd..7709f3c 100644
--- a/src/app-indicator.h
+++ b/src/app-indicator.h
@@ -32,6 +32,10 @@ License version 3 and version 2.1 along with this program. If not, see
#include <gtk/gtk.h>
+#define APP_INDICATOR_INSIDE
+#include "app-indicator-version.h"
+#undef APP_INDICATOR_INSIDE
+
G_BEGIN_DECLS
/**
@@ -98,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.
@@ -116,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"
@@ -176,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.
@@ -205,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,
@@ -278,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);
@@ -302,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);