diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-04-10 00:25:07 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-04-10 00:25:07 +0000 |
| commit | cd8cae5bf430285e5dcef81e9b46a43d8f91131b (patch) | |
| tree | df6b945ab108f750f2bdcc66efb9b41174c460c1 /src/widgets/toolbox.cpp | |
| parent | add GSEAL_ENABLE flag, ready to be activated (diff) | |
| download | inkscape-cd8cae5bf430285e5dcef81e9b46a43d8f91131b.tar.gz inkscape-cd8cae5bf430285e5dcef81e9b46a43d8f91131b.zip | |
Replace remaining gtk_hbox_new usage
(bzr r11204)
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/toolbox.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 38a581cdc..ff9718815 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -3091,7 +3091,12 @@ static void sp_stb_defaults( GtkWidget * /*widget*/, GObject *dataKludge ) // public: void sp_toolbox_add_label(GtkWidget *tbl, gchar const *title, bool wide) { +#if GTK_CHECK_VERSION(3,0,0) + GtkWidget *boxl = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_box_set_homogeneous(GTK_BOX(boxl), FALSE); +#else GtkWidget *boxl = gtk_hbox_new(FALSE, 0); +#endif if (wide) { gtk_widget_set_size_request(boxl, MODE_LABEL_WIDTH, -1); } |
