1 |
/* |
2 |
* Copyright (C) 2006, 2007 Andreas Persson |
3 |
* |
4 |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
6 |
* published by the Free Software Foundation; either version 2, or (at |
7 |
* your option) any later version. |
8 |
* |
9 |
* This program is distributed in the hope that it will be useful, but |
10 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 |
* General Public License for more details. |
13 |
* |
14 |
* You should have received a copy of the GNU General Public License |
15 |
* along with program; see the file COPYING. If not, write to the Free |
16 |
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
17 |
* 02110-1301 USA. |
18 |
*/ |
19 |
|
20 |
#include <gtkmm/main.h> |
21 |
#include "mainwindow.h" |
22 |
|
23 |
#include <libintl.h> |
24 |
#include <config.h> |
25 |
|
26 |
int main(int argc, char* argv[]) |
27 |
{ |
28 |
setlocale(LC_ALL, ""); |
29 |
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); |
30 |
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); |
31 |
textdomain(GETTEXT_PACKAGE); |
32 |
|
33 |
Glib::thread_init(); |
34 |
Gtk::Main kit(argc, argv); |
35 |
|
36 |
MainWindow window; |
37 |
|
38 |
if (argc >= 2) window.getInfo(argv[1]); |
39 |
|
40 |
Gtk::Main::run(window); |
41 |
|
42 |
return 0; |
43 |
} |