diff options
Diffstat (limited to 'mozilla-1144643.patch')
-rw-r--r-- | mozilla-1144643.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mozilla-1144643.patch b/mozilla-1144643.patch new file mode 100644 index 0000000..4973c33 --- /dev/null +++ b/mozilla-1144643.patch @@ -0,0 +1,31 @@ +# HG changeset patch +# User Martin Stransky <stransky@redhat.com> +# Parent fe49971df272eeb2333d992dfc7a1928d261f0c9 +Bug 1144643 - Render tooltips as transparent on Gtk3, r=?karlt + +diff --git a/widget/gtk/nsNativeThemeGTK.cpp b/widget/gtk/nsNativeThemeGTK.cpp +--- a/widget/gtk/nsNativeThemeGTK.cpp ++++ b/widget/gtk/nsNativeThemeGTK.cpp +@@ -1523,15 +1523,21 @@ nsNativeThemeGTK::GetWidgetTransparency( + case NS_THEME_SCROLLBAR_TRACK_VERTICAL: + case NS_THEME_SCROLLBAR_TRACK_HORIZONTAL: + case NS_THEME_TOOLBAR: + case NS_THEME_MENUBAR: + #endif + case NS_THEME_MENUPOPUP: + case NS_THEME_WINDOW: + case NS_THEME_DIALOG: +- // Tooltips use gtk_paint_flat_box(). ++ return eOpaque; ++ // Tooltips use gtk_paint_flat_box() on Gtk2 ++ // but are shaped on Gtk3 + case NS_THEME_TOOLTIP: ++#if (MOZ_WIDGET_GTK == 2) + return eOpaque; ++#else ++ return eTransparent; ++#endif + } + + return eUnknownTransparency; + } |