From 630be8274013c5eef5f19e19a14bc6d759aada5a Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Sun, 26 May 2019 16:11:07 +0100 Subject: Rm unused code now Gtk+ >= 3.22 dependency is set --- src/ui/dialog/objects.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/ui/dialog/objects.cpp') 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(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(event)); -#else - _popupMenu.popup(event->button, event->time); -#endif if (_tree.get_selection()->is_selected(path)) { return true; -- cgit v1.2.3