summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-05-11 17:37:18 +0200
committerMichael Stahl <mstahl@redhat.com>2015-05-11 17:37:18 +0200
commit589d48c783fc18967cf122b18f9a525869dd77bc (patch)
treecbd3262b9161374c6fef9efc21e3101e21dba6f1
parent500acced7c900b34fdd78139ecfd5e921309c304 (diff)
vcl: gtk3: GTK_STYLE_CLASS_LABEL requires 3.16
Change-Id: Ic6701e391525ed837fbd7f015025ccc5c345caec
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 765b088e6c2a..86c2879645d1 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);