summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/layers.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-05-26 15:11:07 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-05-26 15:11:07 +0000
commit630be8274013c5eef5f19e19a14bc6d759aada5a (patch)
tree6774d8db433426ab8361e18638869ad2336bf705 /src/ui/dialog/layers.cpp
parentRename wrong named function (diff)
downloadinkscape-630be8274013c5eef5f19e19a14bc6d759aada5a.tar.gz
inkscape-630be8274013c5eef5f19e19a14bc6d759aada5a.zip
Rm unused code now Gtk+ >= 3.22 dependency is set
Diffstat (limited to 'src/ui/dialog/layers.cpp')
-rw-r--r--src/ui/dialog/layers.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/ui/dialog/layers.cpp b/src/ui/dialog/layers.cpp
index 449d6be1a..1e2a6ea35 100644
--- a/src/ui/dialog/layers.cpp
+++ b/src/ui/dialog/layers.cpp
@@ -156,11 +156,7 @@ Gtk::MenuItem& LayersPanel::_addPopupItem( SPDesktop *desktop, unsigned int code
}
Gtk::Label *menu_label = Gtk::manage(new Gtk::Label(label, true));
-#if GTKMM_CHECK_VERSION(3,16,0)
menu_label->set_xalign(0.0);
-#else
- menu_label->set_alignment(0.0, 0.5);
-#endif
box->pack_start(*menu_label, true, true, 0);
item->add(*box);
item->show_all();
@@ -557,11 +553,7 @@ bool LayersPanel::_handleButtonEvent(GdkEventButton* event)
if ( _tree.get_path_at_pos( x, y, path ) ) {
_checkTreeSelection();
-#if GTKMM_CHECK_VERSION(3,22,0)
_popupMenu.popup_at_pointer(reinterpret_cast<GdkEvent *>(event));
-#else
- _popupMenu.popup(event->button, event->time);
-#endif
}
}