1 /**********************************************************************
2 Freeciv - Copyright (C) 1996-2005 - Freeciv Development Team
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 ***********************************************************************/
13 #ifndef FC__CHOICE_DIALOG_H
14 #define FC__CHOICE_DIALOG_H
18 GtkWidget
*popup_choice_dialog(GtkWindow
*parent
, const gchar
*dialogname
,
19 const gchar
*text
, ...);
21 void choice_dialog_set_hide(GtkWidget
*dshell
, gboolean setting
);
23 GtkWidget
*choice_dialog_start(GtkWindow
*parent
, const gchar
*name
,
25 void choice_dialog_add(GtkWidget
*dshell
, const gchar
*label
,
26 GCallback handler
, gpointer data
,
27 bool meta
, const gchar
*tool_tip
);
28 void choice_dialog_end(GtkWidget
*dshell
);
29 int choice_dialog_get_number_of_buttons(GtkWidget
*cd
);
30 void choice_dialog_button_set_sensitive(GtkWidget
*shl
, int button
,
32 void choice_dialog_button_set_label(GtkWidget
*cd
, int button
,
34 void choice_dialog_button_set_tooltip(GtkWidget
*cd
, int number
,
35 const char* tool_tip
);
36 void choice_dialog_button_move_to_the_end(GtkWidget
*cd
,
38 #endif /* FC__CHOICE_DIALOG_H */