summaryrefslogtreecommitdiff
path: root/gtk2_ardour/location_ui.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-19 00:56:35 +0000
committerDavid Robillard <d@drobilla.net>2011-11-19 00:56:35 +0000
commit05283a63398fd7a563480a76802e6b2c2ad2e404 (patch)
treea0906614a0fc132fca8d5c910fdc97f5e694585b /gtk2_ardour/location_ui.cc
parenta9fb657a47470c5cb439bca5745d4fec8d16b322 (diff)
Only use ArdourDialog (and thus Gtk::Dialog) for actual dialogs.
Fixes #4364. I havn't fully tested every single dialog and window (heck, I don't even know how to get at half of them), and there may be some packing niggles, but this is the bulk of the work. The Gnome 3 kiddies can close their dialogs now, anyway :) git-svn-id: svn://localhost/ardour2/branches/3.0@10699 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/location_ui.cc')
-rw-r--r--gtk2_ardour/location_ui.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc
index 020638d600..5797cd66ee 100644
--- a/gtk2_ardour/location_ui.cc
+++ b/gtk2_ardour/location_ui.cc
@@ -1110,12 +1110,12 @@ LocationUI::session_going_away()
/*------------------------*/
LocationUIWindow::LocationUIWindow ()
- : ArdourDialog (_("Locations"))
+ : ArdourWindow (_("Locations"))
{
set_wmclass(X_("ardour_locations"), PROGRAM_NAME);
set_name ("LocationWindow");
- get_vbox()->pack_start (_ui);
+ add (_ui);
}
LocationUIWindow::~LocationUIWindow()
@@ -1125,7 +1125,7 @@ LocationUIWindow::~LocationUIWindow()
void
LocationUIWindow::on_map ()
{
- ArdourDialog::on_map ();
+ ArdourWindow::on_map ();
_ui.refresh_location_list();
}
@@ -1139,13 +1139,13 @@ LocationUIWindow::on_delete_event (GdkEventAny*)
void
LocationUIWindow::set_session (Session *s)
{
- ArdourDialog::set_session (s);
+ ArdourWindow::set_session (s);
_ui.set_session (s);
}
void
LocationUIWindow::session_going_away ()
{
- ArdourDialog::session_going_away ();
+ ArdourWindow::session_going_away ();
hide_all();
}