Update translation.
[lxde/lxappearance.git] / src / main.c
CommitLineData
f57233d5
HJYP
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>
a0647843 11#include <string.h>
f57233d5
HJYP
12
13#include "main-dlg-ui.h"
a0647843 14#include "demo.h"
f57233d5
HJYP
15#include "glade-support.h"
16
a0647843
HJYP
17int main (int argc, char *argv[])
18{
19 GtkWidget *dlg;
f57233d5
HJYP
20
21#ifdef ENABLE_NLS
a0647843
HJYP
22 bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
23 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
24 textdomain (GETTEXT_PACKAGE);
f57233d5
HJYP
25#endif
26
a0647843
HJYP
27 if( argc >= 3 && strcmp( argv[1], "demo" ) == 0 )
28 {
8c98cd54
HJYP
29 char* files[] = { argv[3], NULL };
30 gtk_rc_set_default_files(files);
31
32 gtk_set_locale ();
33 gtk_init (&argc, &argv);
a0647843
HJYP
34 show_demo( (GdkNativeWindow)atoi( argv[2] ) );
35 gtk_main();
36 return 0;
37 }
f57233d5 38
8c98cd54
HJYP
39 gtk_set_locale ();
40 gtk_init (&argc, &argv);
41
a0647843
HJYP
42 dlg = create_dlg ();
43 main_dlg_init( dlg );
f57233d5 44
a0647843
HJYP
45 gtk_main ();
46 return 0;
f57233d5
HJYP
47}
48