diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-18 10:42:43 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-18 13:24:00 +0200 |
commit | 534ca8161357c3d557a342486c80c8e253ad263b (patch) | |
tree | 043601a11438a032998b31ba1dc3af58c32dc3c1 /gtk2_ardour/route_time_axis.h | |
parent | 1d686ac978c6efd330f86d4d03f02112c778b2d2 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/route_time_axis.h')
-rw-r--r-- | gtk2_ardour/route_time_axis.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); |