Commit Graph

15 Commits

Author SHA1 Message Date
Robin Gareus c162aa7aca
Consistently use context-menu button action
This fixes an issue where brining up a menu can directly activate an
action in the menu. Notably on macOS.

Nathan reports that this may also address #9515

Note: mac touchpads are not affected since right-click there is
effectively a "press and hold".
2023-10-31 20:16:23 +01:00
Robin Gareus 4050ca5633
Update GPL boilerplate and (C)
Copyright-holder and year information is extracted from git log.

git history begins in 2005. So (C) from 1998..2005 is lost. Also some
(C) assignment of commits where the committer didn't use --author.
2019-08-03 15:53:15 +02:00
Robin Gareus 2e5daf2eeb
Reduce #includes - avoid ardour_ui.h 2019-03-08 01:53:55 +01:00
Robin Gareus d42c0f2d60
Fix some more Gtk::Menu memory leaks 2019-03-08 01:44:51 +01:00
Robin Gareus 7b96fa1c5e
Fix some Gtk::Menu memory leaks
A Gtk::manage()d widget will be deleted when its parent container
is destroyed. Top-level context menus are not inside a container and
hence need to be manually deallocated.

The solution here is to use a shared Gtk::Menu pointer that is
centrally de/re-allocated.

This works because the GUI is single-threaded and at most one
context menu is visible at a time.
2019-03-07 23:50:50 +01:00
Robin Gareus 962e7a214a Revert "consistent use of context-menu popups"
This reverts commit b3722f7063.

In some cases ardour shows context-menu on right-mouse-button
release. In this case selecting a menu-entry should happen
with the left-mouse button (or any button?!)

Using ev->button is only correct if the menu is temporary and only
visible while the button is held, button release then activates the
menu-item.

This needs further work, in some cases allowing any button (0) to work
makes sense and overall consistency needs to be improved.
Different places use different strategies for context-menus which
don't always match the button used in the event-handler.

This is a hotfix (to make TAV context menus work again with left-click)
2017-03-24 14:48:46 +01:00
Robin Gareus b3722f7063 consistent use of context-menu popups 2017-03-16 02:36:48 +01:00
Paul Davis cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
Paul Davis ba4464dc3c show/hide VCA assign buttons depending on VCA existence 2016-05-31 15:30:42 -04:00
Robin Gareus 22b07e0233 NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
Carl Hetherington fab9ec9d71 Don't translate empty strings.
git-svn-id: svn://localhost/ardour2/branches/3.0@10725 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-21 14:33:54 +00:00
Carl Hetherington 83d47f57c0 Fix the fix to #4431; make overrides to visibility actually
work.


git-svn-id: svn://localhost/ardour2/branches/3.0@10426 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-03 16:52:53 +00:00
Carl Hetherington 154c2a35d7 Allow overrides of the user-set visibility stuff and use it to make sure the master bus doesn't get solo isolate etc. (#4431).
git-svn-id: svn://localhost/ardour2/branches/3.0@10407 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-03 01:44:17 +00:00
Carl Hetherington 05e5d7964e Remove debug code.
git-svn-id: svn://localhost/ardour2/branches/3.0@10347 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-29 21:18:21 +00:00
Carl Hetherington 1006458750 Add missing files.
git-svn-id: svn://localhost/ardour2/branches/3.0@10342 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-29 20:18:06 +00:00