[gimp] Issue #1435 - Add tooltips to GimpColorNotebook's tabs



commit 8d6f023b41190375664fcfe79115e9d44200366d
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jun 8 19:44:29 2018 +0200

    Issue #1435 - Add tooltips to GimpColorNotebook's tabs

 libgimpwidgets/gimpcolornotebook.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/libgimpwidgets/gimpcolornotebook.c b/libgimpwidgets/gimpcolornotebook.c
index 56d97571ce..fddf74f6c2 100644
--- a/libgimpwidgets/gimpcolornotebook.c
+++ b/libgimpwidgets/gimpcolornotebook.c
@@ -33,6 +33,7 @@
 
 #include "gimpcolornotebook.h"
 #include "gimpcolorscales.h"
+#include "gimphelpui.h"
 #include "gimpwidgetsmarshal.h"
 
 #include "libgimp/libgimp-intl.h"
@@ -220,6 +221,7 @@ gimp_color_notebook_style_updated (GtkWidget *widget)
 
       image = gtk_image_new_from_icon_name (selector_class->icon_name,
                                             icon_size);
+      gimp_help_set_help_data (image, gettext (selector_class->name), NULL);
 
       gtk_notebook_set_tab_label (GTK_NOTEBOOK (private->notebook),
                                   GTK_WIDGET (list->data),
@@ -466,6 +468,7 @@ gimp_color_notebook_add_page (GimpColorNotebook *notebook,
 
   image = gtk_image_new_from_icon_name (selector_class->icon_name,
                                         DEFAULT_TAB_ICON_SIZE);
+  gimp_help_set_help_data (image, gettext (selector_class->name), NULL);
 
   gtk_notebook_append_page_menu (GTK_NOTEBOOK (private->notebook),
                                  page, image, menu_widget);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]