Merge branch 'master' into ardour-merge

This commit is contained in:
Paul Davis 2014-09-02 12:07:20 -04:00
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

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before After
Before After

View file

@ -52,16 +52,15 @@ WavesDropdown::_on_menu_item (void* cookie)
void void
WavesDropdown::_on_popup_menu_position (int& x, int& y, bool& push_in) WavesDropdown::_on_popup_menu_position (int& x, int& y, bool& push_in)
{ {
Gtk::Container *toplevel = get_toplevel (); if (get_window ()) {
if (toplevel) { Gtk::Allocation a = get_allocation ();
translate_coordinates (*toplevel, 0, 0, x, y);
Gtk::Allocation a = get_allocation (); int xo;
x += a.get_x (); int yo;
y += a.get_y ();
int xo; get_window ()->get_origin (xo, yo);
int yo;
get_window ()->get_origin (xo, yo); x = xo;
x += xo; y = yo + a.get_height ();
y += yo; }
}
} }