diff options
author | David Robillard <d@drobilla.net> | 2011-11-19 00:56:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-19 00:56:35 +0000 |
commit | 05283a63398fd7a563480a76802e6b2c2ad2e404 (patch) | |
tree | a0906614a0fc132fca8d5c910fdc97f5e694585b /gtk2_ardour/theme_manager.cc | |
parent | a9fb657a47470c5cb439bca5745d4fec8d16b322 (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/theme_manager.cc')
-rw-r--r-- | gtk2_ardour/theme_manager.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gtk2_ardour/theme_manager.cc b/gtk2_ardour/theme_manager.cc index 0d37d50abc..1f172c5515 100644 --- a/gtk2_ardour/theme_manager.cc +++ b/gtk2_ardour/theme_manager.cc @@ -49,7 +49,7 @@ sigc::signal<void> ColorsChanged; sigc::signal<void,uint32_t> ColorChanged; ThemeManager::ThemeManager() - : ArdourDialog (_("Theme Manager")), + : ArdourWindow (_("Theme Manager")), dark_button (_("Dark Theme")), light_button (_("Light Theme")), reset_button (_("Restore Defaults")) @@ -79,10 +79,12 @@ ThemeManager::ThemeManager() theme_selection_hbox.pack_start (dark_button); theme_selection_hbox.pack_start (light_button); - get_vbox()->set_homogeneous(false); - get_vbox()->pack_start (theme_selection_hbox, PACK_SHRINK); - get_vbox()->pack_start (reset_button, PACK_SHRINK); - get_vbox()->pack_start (scroller); + Gtk::VBox* vbox = Gtk::manage (new Gtk::VBox ()); + vbox->set_homogeneous (false); + vbox->pack_start (theme_selection_hbox, PACK_SHRINK); + vbox->pack_start (reset_button, PACK_SHRINK); + vbox->pack_start (scroller); + add (*vbox); color_display.signal_button_press_event().connect (sigc::mem_fun (*this, &ThemeManager::button_press_event), false); |