summaryrefslogtreecommitdiffstats
path: root/src/widgets/gradient-vector.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-04-10 00:25:07 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-04-10 00:25:07 +0000
commitcd8cae5bf430285e5dcef81e9b46a43d8f91131b (patch)
treedf6b945ab108f750f2bdcc66efb9b41174c460c1 /src/widgets/gradient-vector.cpp
parentadd GSEAL_ENABLE flag, ready to be activated (diff)
downloadinkscape-cd8cae5bf430285e5dcef81e9b46a43d8f91131b.tar.gz
inkscape-cd8cae5bf430285e5dcef81e9b46a43d8f91131b.zip
Replace remaining gtk_hbox_new usage
(bzr r11204)
Diffstat (limited to 'src/widgets/gradient-vector.cpp')
-rw-r--r--src/widgets/gradient-vector.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/widgets/gradient-vector.cpp b/src/widgets/gradient-vector.cpp
index d5e55661a..355e6506e 100644
--- a/src/widgets/gradient-vector.cpp
+++ b/src/widgets/gradient-vector.cpp
@@ -825,7 +825,12 @@ static GtkWidget * sp_gradient_vector_widget_new(SPGradient *gradient, SPStop *s
g_signal_connect(G_OBJECT(combo_box), "changed", G_CALLBACK(sp_grad_edit_combo_box_changed), vb);
/* Add and Remove buttons */
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkWidget *hb = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 1);
+ gtk_box_set_homogeneous(GTK_BOX(hb), FALSE);
+#else
GtkWidget *hb = gtk_hbox_new(FALSE, 1);
+#endif
// TRANSLATORS: "Stop" means: a "phase" of a gradient
GtkWidget *b = gtk_button_new_with_label(_("Add stop"));
gtk_widget_show(b);
@@ -842,7 +847,12 @@ static GtkWidget * sp_gradient_vector_widget_new(SPGradient *gradient, SPStop *s
gtk_box_pack_start(GTK_BOX(vb),hb, FALSE, FALSE, AUX_BETWEEN_BUTTON_GROUPS);
/* Offset Slider and stuff */
+#if GTK_CHECK_VERSION(3,0,0)
+ hb = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_box_set_homogeneous(GTK_BOX(hb), FALSE);
+#else
hb = gtk_hbox_new(FALSE, 0);
+#endif
/* Label */
GtkWidget *l = gtk_label_new(_("Offset:"));