saftey commit

This commit is contained in:
Nikolaus Gullotta 2019-03-27 09:11:47 -05:00 committed by Nikolaus Gullotta
parent 961dc52068
commit d4c99d6d38
No known key found for this signature in database
GPG key ID: 565F60578092AA31
3 changed files with 16 additions and 11 deletions

View file

@ -238,8 +238,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();
}

View file

@ -1,5 +1,7 @@
#include <iostream>
#include <gtkmm/table.h>
#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;
}

View file

@ -45,10 +45,12 @@ class MixerSnapshotDialog : public ArdourDialog
MixerSnapshotDialog();
~MixerSnapshotDialog();
// int run();
int run();
private:
Gtkmm2ext::DnDTreeView<std::string> snap_display;
Gtk::ScrolledWindow scroller;
};
#endif