Rulesave saves trade.type and trade.bonus correctly.
[freeciv.git] / client / gui-gtk-2.0 / connectdlg.c
blob8aa728f9e74f12d693a99e22c179cffc247c9042
1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifdef HAVE_CONFIG_H
15 #include <fc_config.h>
16 #endif
18 #include <errno.h>
19 #include <stdio.h>
20 #include <stdlib.h>
21 #include <string.h>
23 #include <gtk/gtk.h>
25 /* utility */
26 #include "fcintl.h"
27 #include "log.h"
28 #include "packets.h"
29 #include "support.h"
30 #include "version.h"
32 /* client */
33 #include "client_main.h"
34 #include "chatline.h"
35 #include "colors.h"
36 #include "connectdlg_common.h"
37 #include "dialogs.h"
38 #include "gui_main.h"
39 #include "gui_stuff.h"
40 #include "options.h"
41 #include "packhand.h"
42 #include "tilespec.h"
44 #include "connectdlg.h"
47 /**************************************************************************
48 really close and destroy the dialog.
49 **************************************************************************/
50 void really_close_connection_dialog(void)
54 /**************************************************************************
55 close and destroy the dialog but only if we don't have a local
56 server running (that we started).
57 **************************************************************************/
58 void close_connection_dialog()
60 if (!is_server_running()) {
61 really_close_connection_dialog();
65 /**************************************************************************
66 gtk client does nothing here. This gets called when one is rejected
67 from game.
68 **************************************************************************/
69 void server_connect(void)