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)
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 ***********************************************************************/
15 #include <fc_config.h>
33 #include "client_main.h"
36 #include "connectdlg_common.h"
39 #include "gui_stuff.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
68 **************************************************************************/
69 void server_connect(void)