]> Dogcows Code - chaz/tint2/blob - src/tint2conf/main.cpp
cd2c961421d0b4e917f24cc5e370c77cc3ac4804
[chaz/tint2] / src / tint2conf / main.cpp
1 /**************************************************************************
2 *
3 * Tint2conf
4 *
5 * Copyright (C) 2009 Thierry lorthiois (lorthiois@bbsoft.fr)
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License version 2
9 * as published by the Free Software Foundation.
10 *
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.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 **************************************************************************/
19
20 #include <string>
21 #include <stdio.h>
22 #include <gtkmm.h>
23 #include <glib.h>
24
25 #include "mainwin.h"
26
27
28 // g++ `pkg-config --libs --cflags gtkmm-2.4 --libs gthread-2.0` -o tint2conf main.cpp mainwin.cpp thumbview.cpp
29
30 int main (int argc, char ** argv)
31 {
32 // set up i18n
33 //bindtextdomain(PACKAGE, LOCALEDIR);
34 //bind_textdomain_codeset(PACKAGE, "UTF-8");
35 //textdomain(PACKAGE);
36
37 Gtk::Main kit(argc, argv);
38 Glib::thread_init();
39
40 MainWin window;
41
42 window.view.set_dir("");
43 window.view.load_dir();
44
45 // rig up idle/thread routines
46 Glib::Thread::create(sigc::mem_fun(window.view, &Thumbview::load_cache_images), true);
47 Glib::Thread::create(sigc::mem_fun(window.view, &Thumbview::create_cache_images), true);
48
49 //Shows the window and returns when it is closed.
50 Gtk::Main::run(window);
51
52 return 0;
53 }
54
This page took 0.041086 seconds and 3 git commands to generate.