[gnumeric] GUI: Attempt a workaround for gtk bugs causing #696812.



commit 4e18129d311e66d594ebd7c88fbd488e2121f5d4
Author: Morten Welinder <terra gnome org>
Date:   Fri Apr 5 16:03:29 2013 -0400

    GUI: Attempt a workaround for gtk bugs causing #696812.

 src/widgets/gnumeric-expr-entry.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index c9948b0..1759e19 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -808,6 +808,17 @@ gee_create_tooltip (GnmExprEntry *gee, gchar const *str,
        label = gnumeric_convert_to_tooltip (toplevel, gtk_text_view_new ());
        tip = gtk_widget_get_toplevel (label);
 
+#if !GTK_CHECK_VERSION(3,4,0)
+       /* Workaround for theme bugs and missing "inherit" in pre GTK 3.4. */
+       {
+               GtkStyleContext *context = gtk_widget_get_style_context (tip);
+               GtkStateFlags state = GTK_STATE_FLAG_NORMAL;
+               GdkRGBA c;
+               gtk_style_context_get_color (context, state, &c);
+               gtk_widget_override_color (label, state, &c);
+       }
+#endif
+
        if (str)
                markup = gnm_func_convert_markup_to_pango (str);
        string = g_string_new (markup);


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