diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2017-07-06 19:05:52 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2017-07-06 19:05:52 +0000 |
| commit | b676ea2474b68e17c83dc33ebde3bc36b106c661 (patch) | |
| tree | b03b6c5f5bcbefb48a7e882f6c97894f63821d9a /src/ui/dialog/new-from-template.cpp | |
| parent | Gtkmm deprecation fixes (diff) | |
| download | inkscape-b676ea2474b68e17c83dc33ebde3bc36b106c661.tar.gz inkscape-b676ea2474b68e17c83dc33ebde3bc36b106c661.zip | |
Gtkmm deprecation fixes
Diffstat (limited to 'src/ui/dialog/new-from-template.cpp')
| -rw-r--r-- | src/ui/dialog/new-from-template.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/dialog/new-from-template.cpp b/src/ui/dialog/new-from-template.cpp index 2b33fd54d..ab46a55da 100644 --- a/src/ui/dialog/new-from-template.cpp +++ b/src/ui/dialog/new-from-template.cpp @@ -15,9 +15,6 @@ #include "new-from-template.h" #include "file.h" -#include <gtkmm/alignment.h> - - namespace Inkscape { namespace UI { @@ -32,13 +29,16 @@ NewFromTemplate::NewFromTemplate() get_content_area()->pack_start(*_main_widget); - Gtk::Alignment *align; - align = Gtk::manage(new Gtk::Alignment(Gtk::ALIGN_END, Gtk::ALIGN_CENTER, 0.0, 0.0)); + _create_template_button.set_halign(Gtk::ALIGN_END); + _create_template_button.set_valign(Gtk::ALIGN_END); - get_content_area()->pack_end(*align, Gtk::PACK_SHRINK); +#if WITH_GTKMM_3_12 + _create_template_button.set_margin_end(15); +#else + _create_template_button.set_margin_right(15); +#endif - align->set_padding(0, 0, 0, 15); - align->add(_create_template_button); + get_content_area()->pack_end(_create_template_button, Gtk::PACK_SHRINK); _create_template_button.signal_clicked().connect( sigc::mem_fun(*this, &NewFromTemplate::_createFromTemplate)); |
