summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-11 14:36:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-11 14:38:12 +0100
commitdbf1e124c7fef7cae5392959ab6a697a3a89c609 (patch)
tree5d1dd664865255419ce2bb97ac67457734e59590
parent176b8229bcee36122fe48d52abb3b250d3f80714 (diff)
gtk3: now need to match GTK_STYLE_CLASS_LABEL to get label in tab properties
since gtk3 3.16 Change-Id: Iab4231f818a60a82924e81c1a98c98f6c0dc8ed2
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 4ea7e9c725f6..765b088e6c2a 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -1347,10 +1347,10 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
gtk_style_context_set_screen( pCStyle, gtk_window_get_screen( GTK_WINDOW( mpWindow ) ) );
GtkWidgetPath *pCPath = gtk_widget_path_new();
guint pos = gtk_widget_path_append_type(pCPath, GTK_TYPE_NOTEBOOK);
- gtk_widget_path_iter_add_class(pCPath, 0, GTK_STYLE_CLASS_NOTEBOOK);
- gtk_widget_path_iter_add_region(pCPath, pos, "tab", static_cast<GtkRegionFlags>(GTK_REGION_EVEN | GTK_REGION_FIRST));
+ 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);
- gtk_widget_path_iter_set_name(pCPath, pos, "first tab label");
+ gtk_widget_path_iter_add_class(pCPath, pos, GTK_STYLE_CLASS_LABEL);
pCStyle = gtk_style_context_new();
gtk_style_context_set_path(pCStyle, pCPath);
gtk_widget_path_free(pCPath);