mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 00:17:49 +01:00
saftey commit
This commit is contained in:
parent
961dc52068
commit
d4c99d6d38
3 changed files with 16 additions and 11 deletions
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue