diff --git a/gtk2_ardour/editor_route_groups.cc b/gtk2_ardour/editor_route_groups.cc index bf8405b75a..309d91d065 100644 --- a/gtk2_ardour/editor_route_groups.cc +++ b/gtk2_ardour/editor_route_groups.cc @@ -236,8 +236,8 @@ void EditorRouteGroups::write() { void EditorRouteGroups::load() { string path = Glib::build_filename(user_config_directory(-1), "snapshot.xml"); camera->load(path); - MixerSnapshotDialog m = MixerSnapshotDialog(); - // m.run(); + MixerSnapshotDialog* m = new MixerSnapshotDialog(); + m->run(); } diff --git a/gtk2_ardour/mixer_snapshot_dialog.cc b/gtk2_ardour/mixer_snapshot_dialog.cc index d46f930db5..f08bb4a136 100644 --- a/gtk2_ardour/mixer_snapshot_dialog.cc +++ b/gtk2_ardour/mixer_snapshot_dialog.cc @@ -1,5 +1,7 @@ #include +#include + #include "mixer_snapshot_dialog.h" #include "pbd/i18n.h" @@ -12,19 +14,20 @@ MixerSnapshotDialog::MixerSnapshotDialog() : ArdourDialog(_("this is a dialog"), true, false) { - set_name("PluginSelectorWindow"); - - if(_session) - cout << " MixerSnapshotDialog is being constructed in session -" << _session->name() << endl; + set_name("msdialog"); + Table* table = new Table(3, 3); + table->set_size_request(-1, 600); + table->attach (scroller, 0, 3, 0, 5); + get_vbox()->pack_start (*table); + } -MixerSnapshotDialog::~MixerSnapshotDialog() +MixerSnapshotDialog::~MixerSnapshotDialog() { } int MixerSnapshotDialog::run() { show_all(); - Dialog::run(); return 0; } \ No newline at end of file diff --git a/gtk2_ardour/mixer_snapshot_dialog.h b/gtk2_ardour/mixer_snapshot_dialog.h index 5e6acdaf14..1dd0af6764 100644 --- a/gtk2_ardour/mixer_snapshot_dialog.h +++ b/gtk2_ardour/mixer_snapshot_dialog.h @@ -45,10 +45,12 @@ class MixerSnapshotDialog : public ArdourDialog MixerSnapshotDialog(); ~MixerSnapshotDialog(); - // int run(); + int run(); private: + + Gtkmm2ext::DnDTreeView snap_display; + Gtk::ScrolledWindow scroller; + }; - - #endif