summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-05-08 14:33:57 +0000
committertavmjong-free <tavmjong@free.fr>2016-05-08 14:33:57 +0000
commit0922f2de66fefdb001df408b166a04ef47342721 (patch)
treeb1d191713d5bf911996b151bd51ca09b83c74ffb /src
parentadd missing POTFILES.in line in mirror symmetry LPE (diff)
parentAttemt to fix ruler background for GTK 3.20. (diff)
downloadinkscape-0922f2de66fefdb001df408b166a04ef47342721.tar.gz
inkscape-0922f2de66fefdb001df408b166a04ef47342721.zip
Attempt to fix ruler background for GTK 3.20.
(bzr r14879)
Diffstat (limited to 'src')
-rw-r--r--src/widgets/ruler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/ruler.cpp b/src/widgets/ruler.cpp
index bcab535f9..deffd384a 100644
--- a/src/widgets/ruler.cpp
+++ b/src/widgets/ruler.cpp
@@ -168,6 +168,10 @@ sp_ruler_class_init (SPRulerClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+#if GTK_CHECK_VERSION(3,20,0)
+ gtk_widget_class_set_css_name (widget_class, "ruler-widget");
+#endif
+
object_class->dispose = sp_ruler_dispose;
object_class->set_property = sp_ruler_set_property;
object_class->get_property = sp_ruler_get_property;