summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/page-sizer.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2017-07-06 15:40:26 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2017-07-06 15:40:26 +0000
commit3c2b7df1b8e6b89305380548c5f33c9120cb5161 (patch)
treea295efe8d8acfd604903b0e0e734389999626f87 /src/ui/widget/page-sizer.cpp
parenthttp: Migrate to new LibSoup API (diff)
downloadinkscape-3c2b7df1b8e6b89305380548c5f33c9120cb5161.tar.gz
inkscape-3c2b7df1b8e6b89305380548c5f33c9120cb5161.zip
Gtkmm deprecation fixes
Diffstat (limited to 'src/ui/widget/page-sizer.cpp')
-rw-r--r--src/ui/widget/page-sizer.cpp54
1 files changed, 24 insertions, 30 deletions
diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp
index 081300b9e..bb88536d5 100644
--- a/src/ui/widget/page-sizer.cpp
+++ b/src/ui/widget/page-sizer.cpp
@@ -374,37 +374,31 @@ PageSizer::PageSizer(Registry & _wr)
_marginTable.set_row_spacing(4);
_marginTable.set_column_spacing(4);
- _marginTopAlign.set_hexpand();
- _marginTopAlign.set_vexpand();
- _marginTable.attach(_marginTopAlign, 0, 0, 2, 1);
-
- _marginLeftAlign.set_hexpand();
- _marginLeftAlign.set_vexpand();
- _marginTable.attach(_marginLeftAlign, 0, 1, 1, 1);
-
- _marginRightAlign.set_hexpand();
- _marginRightAlign.set_vexpand();
- _marginTable.attach(_marginRightAlign, 1, 1, 1, 1);
-
- _marginBottomAlign.set_hexpand();
- _marginBottomAlign.set_vexpand();
- _marginTable.attach(_marginBottomAlign, 0, 2, 2, 1);
-
- _fitPageButtonAlign.set_hexpand();
- _fitPageButtonAlign.set_vexpand();
- _marginTable.attach(_fitPageButtonAlign, 0, 3, 2, 1);
-
- _marginTopAlign.set(0.5, 0.5, 0.0, 1.0);
- _marginTopAlign.add(_marginTop);
- _marginLeftAlign.set(0.0, 0.5, 0.0, 1.0);
- _marginLeftAlign.add(_marginLeft);
- _marginRightAlign.set(1.0, 0.5, 0.0, 1.0);
- _marginRightAlign.add(_marginRight);
- _marginBottomAlign.set(0.5, 0.5, 0.0, 1.0);
- _marginBottomAlign.add(_marginBottom);
+ _marginTop.set_halign(Gtk::ALIGN_CENTER);
+ _marginTop.set_hexpand();
+ _marginTop.set_vexpand();
+ _marginTable.attach(_marginTop, 0, 0, 2, 1);
+
+ _marginLeft.set_halign(Gtk::ALIGN_START);
+ _marginLeft.set_hexpand();
+ _marginLeft.set_vexpand();
+ _marginTable.attach(_marginLeft, 0, 1, 1, 1);
+
+ _marginRight.set_halign(Gtk::ALIGN_END);
+ _marginRight.set_hexpand();
+ _marginRight.set_vexpand();
+ _marginTable.attach(_marginRight, 1, 1, 1, 1);
+
+ _marginBottom.set_halign(Gtk::ALIGN_CENTER);
+ _marginBottom.set_hexpand();
+ _marginBottom.set_vexpand();
+ _marginTable.attach(_marginBottom, 0, 2, 2, 1);
+
+ _fitPageButton.set_halign(Gtk::ALIGN_CENTER);
+ _fitPageButton.set_hexpand();
+ _fitPageButton.set_vexpand();
+ _marginTable.attach(_fitPageButton, 0, 3, 2, 1);
- _fitPageButtonAlign.set(0.5, 0.5, 0.0, 1.0);
- _fitPageButtonAlign.add(_fitPageButton);
_fitPageButton.set_use_underline();
_fitPageButton.set_label(_("_Resize page to drawing or selection (Ctrl+Shift+R)"));
_fitPageButton.set_tooltip_text(_("Resize the page to fit the current selection, or the entire drawing if there is no selection"));