6a985df81e
Replace positioning function with popup helper
...
Because all uses of the function positioning menus anchored to a widget
were as callback argument to Gtk::Menu::popup() where the caller needed
to correctly bind arguments, this led to repeated and a bit obscure code.
Wrap the logic into an helper function that takes care of all that, and
update the callers.
2016-08-17 01:45:47 +02:00
a51cd8689f
Move anchored menu placement strategy to Gtkmm2ext utils
...
So that it can be used by others.
2016-08-08 16:44:40 +02:00
054b347181
Remove the space for checks/radios/icons in dropdowns
2016-08-07 18:50:17 +02:00
5dd4c33915
Make Dropdown menus at least as wide as the button
2016-08-07 18:43:39 +02:00
5f6cec7c2f
Improve placement of Dropdown popups.
...
When an item in the menu corresponds to the currently displayed choice,
vertically align the item with the button on menu popup.
2016-08-07 17:20:43 +02:00
625240fe30
Use a C++ bool constant
2016-08-07 16:17:39 +02:00
e1da96c472
Improve ArdourDropdown menu position
2016-08-07 16:14:59 +02:00
cf52d6e4b4
enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
2016-07-14 14:45:23 -04:00
André Nusser
e50e50c0f9
Disable scrolling in the dropdown menus of midi region heads.
...
Instead pass it to the canvas as proposed by x42 in #6143 .
2015-12-02 15:02:47 -05:00
22b07e0233
NOOP, remove trailing tabs/whitespace.
2015-10-05 16:17:49 +02:00
38bae2996a
Remove ardour_ui.h header inclusion
2015-09-16 16:55:17 -04:00
fc1e7dbb55
Move DPIReset and ColorsChanged signals into UIConfiguration
2015-09-16 16:55:17 -04:00
6c8e11d3f8
change ArdourDropdown API to allow other types of menu elements
2015-06-29 14:18:13 -04:00
66128bc540
fix -Wsign-compare
2015-05-03 23:36:20 +02:00
62a2d6a064
implement scroll wheel support for ardour-dropdown
2015-05-03 01:00:44 +02:00
17a58ecd4b
Use ArdourDropdown for MIDI device selector.
2014-12-12 23:38:41 -05:00
3f297f7dab
Fix ArdourButton event sequence.
...
Always give ArdourButton a chance to handle Press or Release events if you override them.
This allows ArdourButtons to do the "Pressed" animation
And it now correctly eats the event so button clicks don't select the channelstrip.
2014-08-28 10:31:57 -05:00
6bcee4e9c8
rename ArdourMenu to ArdourDropdown
2014-03-26 11:40:25 -05:00