summaryrefslogtreecommitdiffstats
path: root/src/widgets/sp-color-notebook.cpp
diff options
context:
space:
mode:
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];