summaryrefslogtreecommitdiffstats
path: root/src/file-update.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2017-07-09 16:14:39 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2017-07-09 16:14:39 +0000
commit558941d03a4a9fe22de92952334f2ed3724e93f5 (patch)
tree8e52a2ce7391effebfe630a93563a83eba72b750 /src/file-update.cpp
parentDrop GdkWindow update stuff. Now handled automatically (diff)
downloadinkscape-558941d03a4a9fe22de92952334f2ed3724e93f5.tar.gz
inkscape-558941d03a4a9fe22de92952334f2ed3724e93f5.zip
Update for Gtk alignment changes
Diffstat (limited to 'src/file-update.cpp')
-rw-r--r--src/file-update.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/file-update.cpp b/src/file-update.cpp
index c9a1b6d62..c48e8674f 100644
--- a/src/file-update.cpp
+++ b/src/file-update.cpp
@@ -371,15 +371,16 @@ void sp_file_convert_dpi(SPDocument *doc)
choice2_1.show();
choice2_2.show();
- Gtk::Alignment balign(0, 0, 0, 0);
- balign.set_padding (0, 0, 30, 0);
- balign.show();
- balign.add(b);
+ b.set_halign(Gtk::ALIGN_START);
+ b.set_valign(Gtk::ALIGN_START);
+ b.set_hexpand(false);
+ b.set_vexpand(false);
+ b.set_margin_start(30);
Gtk::Box *content = scale_dialog.get_content_area();
content->pack_start(explanation, false, false, 5);
content->pack_start(choice1, false, false, 5);
content->pack_start(choice2, false, false, 5);
- content->pack_start(balign, false, false, 5);
+ content->pack_start(b, false, false, 5);
content->pack_start(backup_button, false, false, 5);
Gtk::Button *ok_button = scale_dialog.add_button(_("OK"), GTK_RESPONSE_ACCEPT);
backup_button.set_active(backup);