[Libreoffice-commits] core.git: vcl/unx
Michael Stahl
mstahl at redhat.com
Mon May 11 08:43:17 PDT 2015
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 589d48c783fc18967cf122b18f9a525869dd77bc
Author: Michael Stahl <mstahl at redhat.com>
Date: Mon May 11 17:37:18 2015 +0200
vcl: gtk3: GTK_STYLE_CLASS_LABEL requires 3.16
Change-Id: Ic6701e391525ed837fbd7f015025ccc5c345caec
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 765b088..86c2879 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -1350,7 +1350,11 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
gtk_widget_path_iter_add_class(pCPath, pos, GTK_STYLE_CLASS_NOTEBOOK);
gtk_widget_path_iter_add_region(pCPath, pos, GTK_STYLE_REGION_TAB, static_cast<GtkRegionFlags>(GTK_REGION_EVEN | GTK_REGION_FIRST));
pos = gtk_widget_path_append_type (pCPath, GTK_TYPE_LABEL);
+#if GTK_CHECK_VERSION(3,16,0)
gtk_widget_path_iter_add_class(pCPath, pos, GTK_STYLE_CLASS_LABEL);
+#else
+ gtk_widget_path_iter_set_name(pCPath, pos, "first tab label");
+#endif
pCStyle = gtk_style_context_new();
gtk_style_context_set_path(pCStyle, pCPath);
gtk_widget_path_free(pCPath);
More information about the Libreoffice-commits
mailing list