summaryrefslogtreecommitdiff
path: root/mozilla-1169232.patch
diff options
context:
space:
mode:
Diffstat (limited to 'mozilla-1169232.patch')
-rw-r--r--mozilla-1169232.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/mozilla-1169232.patch b/mozilla-1169232.patch
new file mode 100644
index 0000000..016e82f
--- /dev/null
+++ b/mozilla-1169232.patch
@@ -0,0 +1,27 @@
+# HG changeset patch
+# User Martin Stransky <stransky@redhat.com>
+# Parent f8d21278244bc0531513131f85a45e5736207ae1
+Bug 1169232 - [gtk3] add background class to tooltip window
+ to get correct background color. r=?karlt
+
+diff --git a/widget/gtk/nsLookAndFeel.cpp b/widget/gtk/nsLookAndFeel.cpp
+--- a/widget/gtk/nsLookAndFeel.cpp
++++ b/widget/gtk/nsLookAndFeel.cpp
+@@ -1004,16 +1004,17 @@ nsLookAndFeel::Init()
+ gtk_style_context_get_background_color(style, GTK_STATE_FLAG_NORMAL, &color);
+ sMozWindowBackground = GDK_RGBA_TO_NS_RGBA(color);
+ gtk_style_context_get_color(style, GTK_STATE_FLAG_NORMAL, &color);
+ sMozWindowText = GDK_RGBA_TO_NS_RGBA(color);
+ gtk_style_context_restore(style);
+
+ // tooltip foreground and background
+ gtk_style_context_add_class(style, GTK_STYLE_CLASS_TOOLTIP);
++ gtk_style_context_add_class(style, GTK_STYLE_CLASS_BACKGROUND);
+ gtk_style_context_get_background_color(style, GTK_STATE_FLAG_NORMAL, &color);
+ sInfoBackground = GDK_RGBA_TO_NS_RGBA(color);
+ gtk_style_context_get_color(style, GTK_STATE_FLAG_NORMAL, &color);
+ sInfoText = GDK_RGBA_TO_NS_RGBA(color);
+ g_object_unref(style);
+
+ // menu foreground & menu background
+ GtkWidget *accel_label = gtk_accel_label_new("M");
bgstack15