diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-05-02 18:13:35 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-05-02 18:13:35 -0400 |
commit | 3973ce81b37a9ba6fcd2e7ff95ca730b0aa32252 (patch) | |
tree | e5f970e5cbcd5abb168ce59b99c93a65d7cecf3d /gtk2_ardour/edit_note_dialog.cc | |
parent | d14f43ccf2eef9c43ecb44f7973962e634d17590 (diff) |
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
Diffstat (limited to 'gtk2_ardour/edit_note_dialog.cc')
-rw-r--r-- | gtk2_ardour/edit_note_dialog.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gtk2_ardour/edit_note_dialog.cc b/gtk2_ardour/edit_note_dialog.cc index 17827693e7..5aacc59f3c 100644 --- a/gtk2_ardour/edit_note_dialog.cc +++ b/gtk2_ardour/edit_note_dialog.cc @@ -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; } |