diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-06-23 13:13:45 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-06-23 13:13:45 +0000 |
| commit | f943942ebb0639781b3bf6b3c3df3c1782597e6f (patch) | |
| tree | fd7b4bb0a4bddf7ed72a23437cd3cd2e8b227843 /src/widgets/sp-color-notebook.cpp | |
| parent | Migrate to new device pointer API for GTK+ 3 (diff) | |
| download | inkscape-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.cpp | 6 |
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]; |
