summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/objects.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/objects.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/objects.cpp')
-rw-r--r--src/ui/dialog/objects.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/ui/dialog/objects.cpp b/src/ui/dialog/objects.cpp
index be357737b..606539797 100644
--- a/src/ui/dialog/objects.cpp
+++ b/src/ui/dialog/objects.cpp
@@ -286,11 +286,7 @@ Gtk::MenuItem& ObjectsPanel::_addPopupItem( SPDesktop *desktop, unsigned int cod
}
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();
@@ -786,12 +782,7 @@ bool ObjectsPanel::_handleButtonEvent(GdkEventButton* event)
int y = static_cast<int>(event->y);
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
if (_tree.get_selection()->is_selected(path)) {
return true;