Import upstream Source
[gamazons.git] / src / main.c
blob889ace86b5a407bdee60e41c67f76bbedf2380b0
1 /*
2 * Initial main.c file generated by Glade. Edit as required.
3 * Glade will not overwrite this file.
4 */
6 #ifdef HAVE_CONFIG_H
7 # include <config.h>
8 #endif
10 #include <gnome.h>
12 #include "interface.h"
13 #include "support.h"
14 #include "amazons.h"
15 #include "board.h"
19 /* Prototypes */
21 /* Globals */
22 Board *board;
23 GtkWidget *main_window;
26 int main (int argc, char *argv[])
28 GtkWidget *GamazonsMain;
31 #ifdef ENABLE_NLS
32 bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
33 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
34 textdomain (GETTEXT_PACKAGE);
35 #endif
37 gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE,
38 argc, argv,
39 GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR,
40 NULL);
43 * The following code was added by Glade to create one of each component
44 * (except popup menus), just so that you see something after building
45 * the project. Delete any components that you don't want shown initially.
48 gnome_window_icon_set_default_from_file (PACKAGE_DATA_DIR "/pixmaps/gnome-gamazons.png");
50 init_engine();
51 GamazonsMain = create_GamazonsMain ();
52 main_window = GamazonsMain;
53 init_game_board(GamazonsMain);
54 gtk_widget_show (GamazonsMain);
56 gtk_main ();
57 return 0;