From f943942ebb0639781b3bf6b3c3df3c1782597e6f Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Sat, 23 Jun 2012 14:13:45 +0100 Subject: Use orientable widgets in GTK+ 3 build (bzr r11512) --- src/widgets/sp-color-notebook.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/widgets/sp-color-notebook.cpp') 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]; -- cgit v1.2.3