mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
Merge branch 'master' into ardour-merge
This commit is contained in:
commit
f5dbd36066
4 changed files with 11 additions and 12 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 543 B After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 3.6 KiB |
|
|
@ -52,16 +52,15 @@ WavesDropdown::_on_menu_item (void* cookie)
|
|||
void
|
||||
WavesDropdown::_on_popup_menu_position (int& x, int& y, bool& push_in)
|
||||
{
|
||||
Gtk::Container *toplevel = get_toplevel ();
|
||||
if (toplevel) {
|
||||
translate_coordinates (*toplevel, 0, 0, x, y);
|
||||
Gtk::Allocation a = get_allocation ();
|
||||
x += a.get_x ();
|
||||
y += a.get_y ();
|
||||
int xo;
|
||||
int yo;
|
||||
get_window ()->get_origin (xo, yo);
|
||||
x += xo;
|
||||
y += yo;
|
||||
}
|
||||
if (get_window ()) {
|
||||
Gtk::Allocation a = get_allocation ();
|
||||
|
||||
int xo;
|
||||
int yo;
|
||||
|
||||
get_window ()->get_origin (xo, yo);
|
||||
|
||||
x = xo;
|
||||
y = yo + a.get_height ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue