diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2016-04-12 22:41:33 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2016-04-12 22:41:33 +0000 |
| commit | 936d8b575539c41d1f45688beea20bb8038b38be (patch) | |
| tree | fbf01a1a78f1c18e0ebf07fc1e29d876d598152b /src/widgets/gradient-vector.cpp | |
| parent | ege-adjustment-action: Fix deprecated gtk_misc_set_alignment #Hackfest2016 (diff) | |
| download | inkscape-936d8b575539c41d1f45688beea20bb8038b38be.tar.gz inkscape-936d8b575539c41d1f45688beea20bb8038b38be.zip | |
gradient-vector: Fix deprecated gtk_misc_set_alignment #Hackfest2016
(bzr r14804)
Diffstat (limited to 'src/widgets/gradient-vector.cpp')
| -rw-r--r-- | src/widgets/gradient-vector.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/widgets/gradient-vector.cpp b/src/widgets/gradient-vector.cpp index 35c1e4a8d..3aa44c90a 100644 --- a/src/widgets/gradient-vector.cpp +++ b/src/widgets/gradient-vector.cpp @@ -914,7 +914,13 @@ static GtkWidget * sp_gradient_vector_widget_new(SPGradient *gradient, SPStop *s /* Label */ GtkWidget *l = gtk_label_new(C_("Gradient","Offset:")); + +#if GTK_CHECK_VERSION(3,0,0) + gtk_widget_set_halign(l, GTK_ALIGN_END); +#else gtk_misc_set_alignment(GTK_MISC(l), 1.0, 0.5); +#endif + gtk_box_pack_start(GTK_BOX(hb),l, FALSE, FALSE, AUX_BETWEEN_BUTTON_GROUPS); gtk_widget_show(l); |
