mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
remove all of Gtk::Window::set_position (WIN_POS_MOUSE) for anything deriving from ArdourDialog or ArdourWindow; move the set_position() call into those classes' constructors, so that they are called before the windows are realized, and thus it actually works
This commit is contained in:
parent
d14f43ccf2
commit
3973ce81b3
31 changed files with 32 additions and 69 deletions
|
|
@ -146,16 +146,13 @@ EditNoteDialog::EditNoteDialog (MidiRegionView* rv, set<ArdourCanvas::CanvasNote
|
|||
add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
|
||||
add_button (Gtk::Stock::APPLY, Gtk::RESPONSE_ACCEPT);
|
||||
set_default_response (Gtk::RESPONSE_ACCEPT);
|
||||
|
||||
show_all ();
|
||||
}
|
||||
|
||||
int
|
||||
EditNoteDialog::run ()
|
||||
void
|
||||
EditNoteDialog::done (int r)
|
||||
{
|
||||
int const r = Dialog::run ();
|
||||
if (r != RESPONSE_ACCEPT) {
|
||||
return r;
|
||||
return;
|
||||
}
|
||||
|
||||
/* These calls mean that if a value is entered using the keyboard
|
||||
|
|
@ -227,6 +224,4 @@ EditNoteDialog::run ()
|
|||
for (set<ArdourCanvas::CanvasNoteEvent*>::iterator i = _events.begin(); i != _events.end(); ++i) {
|
||||
(*i)->set_selected ((*i)->selected()); // change color
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue