summaryrefslogtreecommitdiffstats
path: root/src/widgets/sp-color-notebook.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-06-23 13:13:45 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-06-23 13:13:45 +0000
commitf943942ebb0639781b3bf6b3c3df3c1782597e6f (patch)
treefd7b4bb0a4bddf7ed72a23437cd3cd2e8b227843 /src/widgets/sp-color-notebook.cpp
parentMigrate to new device pointer API for GTK+ 3 (diff)
downloadinkscape-f943942ebb0639781b3bf6b3c3df3c1782597e6f.tar.gz
inkscape-f943942ebb0639781b3bf6b3c3df3c1782597e6f.zip
Use orientable widgets in GTK+ 3 build
(bzr r11512)
Diffstat (limited to 'src/widgets/sp-color-notebook.cpp')
-rw-r--r--src/widgets/sp-color-notebook.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/widgets/sp-color-notebook.cpp b/src/widgets/sp-color-notebook.cpp
index 4bbe15224..5c3c46502 100644
--- a/src/widgets/sp-color-notebook.cpp
+++ b/src/widgets/sp-color-notebook.cpp
@@ -256,7 +256,13 @@ void ColorNotebook::init()
}
}
+#if GTK_CHECK_VERSION(3,0,0)
+ _buttonbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2);
+ gtk_box_set_homogeneous(GTK_BOX(_buttonbox), TRUE);
+#else
_buttonbox = gtk_hbox_new (TRUE, 2);
+#endif
+
gtk_widget_show (_buttonbox);
_buttons = new GtkWidget *[_trackerList->len];