diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2016-04-13 08:47:09 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2016-04-13 08:47:09 +0000 |
| commit | eff7c5e5ab8ed2f381b7dbb6edfd1c7062afc812 (patch) | |
| tree | 50f31814d63acd4ef6570b2e93411ff584cdafdc /src | |
| parent | Should compile inkscape-version.cpp in out of tree builds (diff) | |
| download | inkscape-eff7c5e5ab8ed2f381b7dbb6edfd1c7062afc812.tar.gz inkscape-eff7c5e5ab8ed2f381b7dbb6edfd1c7062afc812.zip | |
color-scales: Fix deprecated gtk_misc_set_alignment #Hackfest2016
(bzr r14812)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/widget/color-scales.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/widget/color-scales.cpp b/src/ui/widget/color-scales.cpp index 170f83887..48a2693bc 100644 --- a/src/ui/widget/color-scales.cpp +++ b/src/ui/widget/color-scales.cpp @@ -92,7 +92,13 @@ void ColorScales::_initUI(SPColorScalesMode mode) for (i = 0; i < static_cast<gint>(G_N_ELEMENTS(_a)); i++) { /* Label */ _l[i] = gtk_label_new(""); + +#if GTK_CHECK_VERSION(3,0,0) + gtk_widget_set_halign(_l[i], GTK_ALIGN_END); +#else gtk_misc_set_alignment(GTK_MISC(_l[i]), 1.0, 0.5); +#endif + gtk_widget_show(_l[i]); #if GTK_CHECK_VERSION(3, 0, 0) |
