Fix bypass crossfade read/write out of bounds
[calf.git] / src / gtk_session_env.cpp
blob3abae46651e31da3adfc2bbacc4b9a7ead8ca792
1 /* Calf DSP Library Utility Application - calfjackhost
2 * GTK+ implementation of session_environment_iface.
4 * Copyright (C) 2007-2011 Krzysztof Foltman
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 * 02110-1301, USA.
22 #include <calf/gtk_session_env.h>
23 #include <calf/gtk_main_win.h>
25 using namespace calf_plugins;
27 void gtk_session_environment::init_gui(int &argc, char **&argv)
29 gtk_rc_add_default_file(PKGLIBDIR "calf.rc");
30 gtk_init(&argc, &argv);
33 main_window_iface *gtk_session_environment::create_main_window()
35 return new gtk_main_window;
38 void gtk_session_environment::start_gui_loop()
40 gtk_main();
43 void gtk_session_environment::quit_gui_loop()
45 gtk_main_quit();
48 gtk_session_environment::~gtk_session_environment()