32 lines
923 B
Diff
32 lines
923 B
Diff
# 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;
|
|
}
|