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/inkscape-preferences.cpp | |
| parent | Gtkmm deprecation fixes (diff) | |
| download | inkscape-b676ea2474b68e17c83dc33ebde3bc36b106c661.tar.gz inkscape-b676ea2474b68e17c83dc33ebde3bc36b106c661.zip | |
Gtkmm deprecation fixes
Diffstat (limited to 'src/ui/dialog/inkscape-preferences.cpp')
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index d946bac82..5ebad0746 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -22,7 +22,6 @@ #include <glibmm/miscutils.h> #include <glibmm/markup.h> #include <gtkmm/main.h> -#include <gtkmm/alignment.h> #include "preferences.h" #include "verbs.h" @@ -85,7 +84,7 @@ InkscapePreferences::InkscapePreferences() delete sb; //Main HBox - Gtk::HBox* hbox_list_page = Gtk::manage(new Gtk::HBox()); + auto hbox_list_page = Gtk::manage(new Gtk::Box()); hbox_list_page->set_border_width(12); hbox_list_page->set_spacing(12); _getContents()->add(*hbox_list_page); @@ -107,7 +106,7 @@ InkscapePreferences::InkscapePreferences() page_list_selection->set_mode(Gtk::SELECTION_BROWSE); //Pages - Gtk::VBox* vbox_page = Gtk::manage(new Gtk::VBox()); + auto vbox_page = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL)); Gtk::Frame* title_frame = Gtk::manage(new Gtk::Frame()); Gtk::ScrolledWindow* pageScroller = Gtk::manage(new Gtk::ScrolledWindow()); @@ -266,12 +265,11 @@ void InkscapePreferences::AddNewObjectsStyle(DialogPage &p, Glib::ustring const _("Apply the style you last set on an object")); PrefRadioButton* own = Gtk::manage( new PrefRadioButton); - Gtk::HBox* hb = Gtk::manage( new Gtk::HBox); - Gtk::Alignment* align = Gtk::manage( new Gtk::Alignment); + auto hb = Gtk::manage( new Gtk::Box); own->init ( _("This tool's own style:"), prefs_path + "/usecurrent", 0, false, current); - align->set(0,0,0,0); - align->add(*own); - hb->add(*align); + own->set_halign(Gtk::ALIGN_START); + own->set_valign(Gtk::ALIGN_START); + hb->add(*own); p.set_tip( *own, _("Each tool may store its own style to apply to the newly created objects. Use the button below to set it.")); p.add_line( true, "", *hb, "", ""); |
