diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-11-18 23:03:16 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:25 -0500 |
commit | 1e537cb53905509eead1c552d012d99982619ec3 (patch) | |
tree | 6101174fa22ca4298a62e80d04c37235e541d0de /gtk2_ardour/ardour_ui2.cc | |
parent | 51879285c5ec92f981c1e7bd0c9a38659b7d9a9f (diff) |
remove tab-related code for tabbed notebook, add tooltips to new buttons
Diffstat (limited to 'gtk2_ardour/ardour_ui2.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui2.cc | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index 2623cc8ca9..4d05bca0d8 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -68,42 +68,6 @@ using namespace Glib; using namespace ARDOUR_UI_UTILS; -bool -ARDOUR_UI::tabs_button_event (GdkEventButton* ev) -{ - std::vector<Widget*> children = _tabs.get_children(); - - for (std::vector<Widget*>::iterator w = children.begin(); w != children.end(); ++w) { - - Gtk::Widget* close_button = reinterpret_cast<Gtk::Widget*> ((*w)->get_data ("close-button")); - - if (close_button) { - - Gtk::Allocation alloc (close_button->get_allocation()); - int dx, dy; - - /* Allocation origin uses toplevel window coordinates; - * event origin uses _tabs-centric coordinate space, so - * translate before computing if event is inside the - * close button. - */ - - close_button->get_toplevel()->translate_coordinates (_tabs, alloc.get_x(), alloc.get_y(), dx, dy); - - if (ev->x >= dx && - ev->y >= dy && - ev->x < dx + alloc.get_width() && - ev->y < dy + alloc.get_height()) { - if (close_button->event ((GdkEvent*) ev)) { - return true; - } - } - } - } - - return false; -} - void ARDOUR_UI::setup_tooltips () { |