Merge branch 'master' of https://github.com/calf-studio-gear/calf
[calf.git] / src / gtk_session_env.cpp
blob94477cea82937109edd41107e5d91abb4db36cd1
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>
24 #include <map>
26 using namespace calf_plugins;
28 void gtk_session_environment::init_gui(int &argc, char **&argv)
30 //gtk_rc_add_default_file(PKGLIBDIR "calf.rc");
31 gtk_init(&argc, &argv);
34 main_window_iface *gtk_session_environment::create_main_window()
36 return new gtk_main_window;
39 void gtk_session_environment::start_gui_loop()
41 gtk_main();
44 void gtk_session_environment::quit_gui_loop()
46 gtk_main_quit();
49 gtk_session_environment::~gtk_session_environment()