[goffice] Color Palette: add tooltip also in menu mode.



commit 893751e1eb0ed1fe90a4ff7b5737206779d1f70d
Author: Morten Welinder <terra gnome org>
Date:   Sun Mar 3 13:05:33 2013 -0500

    Color Palette: add tooltip also in menu mode.

 ChangeLog                      |    5 +++++
 NEWS                           |    1 +
 goffice/gtk/go-color-palette.c |    1 +
 3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5e28723..0f1f6e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-03  Morten Welinder  <terra gnome org>
+
+       * goffice/gtk/go-color-palette.c (go_color_palette_make_menu): Add
+       tooltip for menu mode too.  Fixes #695032.
+
 2013-02-28  Morten Welinder  <terra gnome org>
 
        * configure.ac: remove the DISABLE_DEPRECATED defines even from
diff --git a/NEWS b/NEWS
index 0b26a1d..371b452 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ Morten:
        * Work on new compiler warnings.
        * Add efficient code for computing leverages.  [#691913]
        * Introspection fixes.
+       * Fix missing tooltip in color palette.  [#695032]
 
 --------------------------------------------------------------------------
 goffice 0.10.0:
diff --git a/goffice/gtk/go-color-palette.c b/goffice/gtk/go-color-palette.c
index 778f176..b143b2d 100644
--- a/goffice/gtk/go-color-palette.c
+++ b/goffice/gtk/go-color-palette.c
@@ -706,6 +706,7 @@ go_color_palette_make_menu (char const *no_color_label,
                                goto custom_colors;
                        w = make_colored_menu_item (" ",
                                color_names [pos].color);
+                       gtk_widget_set_tooltip_text (w, _(color_names[pos].name));
                        gtk_menu_attach (GTK_MENU (submenu), w,
                                col, col+1, table_row, table_row+1);
                        g_signal_connect (G_OBJECT (w),


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