summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Cheng <qantas94heavy@gmail.com>2019-05-08 10:50:54 +0000
committerKarl Cheng <qantas94heavy@gmail.com>2019-06-16 09:37:16 +0000
commit0d0545debc43c951942786c425eed9dad70a270e (patch)
tree1333af83087f118edad4fc2902f07d100ff0b851 /src
parentRemove leftover GTK/gtkmm >= 3.16 check (diff)
downloadinkscape-0d0545debc43c951942786c425eed9dad70a270e.tar.gz
inkscape-0d0545debc43c951942786c425eed9dad70a270e.zip
Replace deprecated Gtk::Misc functions
Diffstat (limited to 'src')
-rw-r--r--src/extension/extension.cpp3
-rw-r--r--src/ui/desktop/menubar.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp
index a373e5ec0..77a171487 100644
--- a/src/extension/extension.cpp
+++ b/src/extension/extension.cpp
@@ -796,7 +796,8 @@ Extension::get_help_widget()
if (_help == nullptr) {
Gtk::Label * content = Gtk::manage(new Gtk::Label(_("Currently there is no help available for this Extension. Please look on the Inkscape website or ask on the mailing lists if you have questions regarding this extension.")));
- content->set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START);
+ content->set_xalign(0);
+ content->set_yalign(0);
retval->pack_start(*content, true, true, 4);
content->set_line_wrap(true);
content->show();
diff --git a/src/ui/desktop/menubar.cpp b/src/ui/desktop/menubar.cpp
index 7300e8c3b..04e97a933 100644
--- a/src/ui/desktop/menubar.cpp
+++ b/src/ui/desktop/menubar.cpp
@@ -124,7 +124,7 @@ build_menu_item_from_verb(SPAction* action,
}
Gtk::AccelLabel* label = Gtk::manage(new Gtk::AccelLabel(action->name, true));
- label->set_alignment(0.0, 0.5);
+ label->set_xalign(0.0);
label->set_accel_widget(*menuitem);
sp_shortcut_add_accelerator((GtkWidget*)menuitem->gobj(), sp_shortcut_get_primary(action->verb));