From 534ca8161357c3d557a342486c80c8e253ad263b Mon Sep 17 00:00:00 2001 From: "Julien \"_FrnchFrgg_\" RIVAUD" Date: Thu, 18 Aug 2016 10:42:43 +0200 Subject: Make buttons in track headers behave more like Gtk::MenuToolButton Make their popup menus show attached, and on mouse down, but keep the context menu behavior on middle- and right-click for the group button that reacted to those (probably an oversight but some users might have got the habit of right-clicking). This also makes the group deletion on Ctrl+click happen on mouse down instead of mouse up which is not a great difference and avoids complicating the code. --- gtk2_ardour/route_time_axis.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/route_time_axis.h') diff --git a/gtk2_ardour/route_time_axis.h b/gtk2_ardour/route_time_axis.h index 0634890e51..825a286360 100644 --- a/gtk2_ardour/route_time_axis.h +++ b/gtk2_ardour/route_time_axis.h @@ -183,7 +183,7 @@ protected: void update_diskstream_display (); - gint route_group_click (GdkEventButton *); + bool route_group_click (GdkEventButton *); void processors_changed (ARDOUR::RouteProcessorChange); @@ -227,13 +227,13 @@ protected: void set_align_choice (Gtk::RadioMenuItem*, ARDOUR::AlignChoice, bool apply_to_selection = false); - void playlist_click (); + bool playlist_click (GdkEventButton *); void show_playlist_selector (); void playlist_changed (); void rename_current_playlist (); - void automation_click (); + bool automation_click (GdkEventButton *); virtual void show_all_automation (bool apply_to_selection = false); virtual void show_existing_automation (bool apply_to_selection = false); -- cgit v1.2.3