Freeciv-3.1
|
#include <stdarg.h>
#include <gtk/gtk.h>
#include "support.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "choice_dialog.h"
Go to the source code of this file.
Functions | |
int | choice_dialog_get_number_of_buttons (GtkWidget *cd) |
static GtkWidget * | choice_dialog_get_nth_button (GtkWidget *cd, int button) |
void | choice_dialog_button_set_sensitive (GtkWidget *cd, int button, gboolean state) |
void | choice_dialog_button_set_label (GtkWidget *cd, int number, const char *label) |
void | choice_dialog_button_set_tooltip (GtkWidget *cd, int number, const char *tool_tip) |
void | choice_dialog_button_move_to_the_end (GtkWidget *cd, const int number) |
GtkWidget * | choice_dialog_start (GtkWindow *parent, const gchar *name, const gchar *text) |
static void | choice_dialog_clicked (GtkWidget *w, gpointer data) |
void | choice_dialog_add (GtkWidget *dshell, const gchar *label, GCallback handler, gpointer data, bool meta, const gchar *tool_tip) |
void | choice_dialog_end (GtkWidget *dshell) |
void | choice_dialog_set_hide (GtkWidget *dshell, gboolean setting) |
GtkWidget * | popup_choice_dialog (GtkWindow *parent, const gchar *dialogname, const gchar *text,...) |
void | choice_dialog_destroy (GtkWidget *dlg) |
void choice_dialog_add | ( | GtkWidget * | dshell, |
const gchar * | label, | ||
GCallback | handler, | ||
gpointer | data, | ||
bool | meta, | ||
const gchar * | tool_tip | ||
) |
Add button to choice dialog.
Definition at line 160 of file choice_dialog.c.
void choice_dialog_button_move_to_the_end | ( | GtkWidget * | cd, |
const int | number | ||
) |
Move the specified button to the end.
Definition at line 91 of file choice_dialog.c.
void choice_dialog_button_set_label | ( | GtkWidget * | cd, |
int | number, | ||
const char * | label | ||
) |
Set label for choice dialog button.
Definition at line 71 of file choice_dialog.c.
void choice_dialog_button_set_sensitive | ( | GtkWidget * | cd, |
int | button, | ||
gboolean | state | ||
) |
Set sensitivity state of choice dialog button.
Definition at line 62 of file choice_dialog.c.
void choice_dialog_button_set_tooltip | ( | GtkWidget * | cd, |
int | number, | ||
const char * | tool_tip | ||
) |
Set tool tip for choice dialog button.
Definition at line 81 of file choice_dialog.c.
|
static |
Choice dialog has been clicked and primary handling has taken place already.
Definition at line 148 of file choice_dialog.c.
void choice_dialog_destroy | ( | GtkWidget * | dlg | ) |
Free choice dialog.
Definition at line 248 of file choice_dialog.c.
Referenced by act_sel_cancel_callback(), act_sel_close_callback(), act_sel_new_extra_tgt_callback(), act_sel_new_unit_tgt_callback(), action_selection_close(), found_city_callback(), request_action_details_callback(), simple_action_callback(), spy_steal_popup_shared(), and upgrade_callback().
void choice_dialog_end | ( | GtkWidget * | dshell | ) |
Choice dialog construction ready
Definition at line 196 of file choice_dialog.c.
|
static |
Get nth button widget from dialog
Definition at line 46 of file choice_dialog.c.
int choice_dialog_get_number_of_buttons | ( | GtkWidget * | cd | ) |
Get the number of buttons in the choice dialog.
Definition at line 38 of file choice_dialog.c.
void choice_dialog_set_hide | ( | GtkWidget * | dshell, |
gboolean | setting | ||
) |
Set hide property of choice dialog
Definition at line 209 of file choice_dialog.c.
GtkWidget * choice_dialog_start | ( | GtkWindow * | parent, |
const gchar * | name, | ||
const gchar * | text | ||
) |
Create choice dialog
Definition at line 103 of file choice_dialog.c.
GtkWidget * popup_choice_dialog | ( | GtkWindow * | parent, |
const gchar * | dialogname, | ||
const gchar * | text, | ||
... | |||
) |
Open new choice dialog.
Definition at line 217 of file choice_dialog.c.