Update translation.
[lxde/lxappearance.git] / src / main.c
1 /*
2 * Initial main.c file generated by Glade. Edit as required.
3 * Glade will not overwrite this file.
4 */
5
6 #ifdef HAVE_CONFIG_H
7 # include <config.h>
8 #endif
9
10 #include <gtk/gtk.h>
11 #include <string.h>
12
13 #include "main-dlg-ui.h"
14 #include "demo.h"
15 #include "glade-support.h"
16
17 int main (int argc, char *argv[])
18 {
19 GtkWidget *dlg;
20
21 #ifdef ENABLE_NLS
22 bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
23 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
24 textdomain (GETTEXT_PACKAGE);
25 #endif
26
27 if( argc >= 3 && strcmp( argv[1], "demo" ) == 0 )
28 {
29 char* files[] = { argv[3], NULL };
30 gtk_rc_set_default_files(files);
31
32 gtk_set_locale ();
33 gtk_init (&argc, &argv);
34 show_demo( (GdkNativeWindow)atoi( argv[2] ) );
35 gtk_main();
36 return 0;
37 }
38
39 gtk_set_locale ();
40 gtk_init (&argc, &argv);
41
42 dlg = create_dlg ();
43 main_dlg_init( dlg );
44
45 gtk_main ();
46 return 0;
47 }
48