Little fixes for LXAppearance.
[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 gtk_set_locale ();
28 gtk_init (&argc, &argv);
29
30 if( argc >= 3 && strcmp( argv[1], "demo" ) == 0 )
31 {
32 show_demo( (GdkNativeWindow)atoi( argv[2] ) );
33 gtk_main();
34 return 0;
35 }
36
37 dlg = create_dlg ();
38 main_dlg_init( dlg );
39 gtk_widget_show (dlg);
40
41 gtk_main ();
42 return 0;
43 }
44