blob: 4973c3339ea908a442ffd8f2a52f9497fccc8ba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}
|