Freeciv-3.2
Loading...
Searching...
No Matches
Functions
choice_dialog.c File Reference
#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 GtkWidgetchoice_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)
 
GtkWidgetchoice_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)
 
GtkWidgetpopup_choice_dialog (GtkWindow *parent, const gchar *dialogname, const gchar *text,...)
 

Function Documentation

◆ choice_dialog_add()

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 158 of file choice_dialog.c.

Referenced by action_entry(), popup_action_selection(), popup_choice_dialog(), and popup_workertask_dlg().

◆ choice_dialog_button_move_to_the_end()

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.

Referenced by action_selection_refresh().

◆ choice_dialog_button_set_label()

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.

Referenced by action_entry_update().

◆ choice_dialog_button_set_sensitive()

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.

Referenced by action_entry_update().

◆ choice_dialog_button_set_tooltip()

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.

Referenced by action_entry_update().

◆ choice_dialog_clicked()

static void choice_dialog_clicked ( GtkWidget w,
gpointer  data 
)
static

Choice dialog has been clicked and primary handling has taken place already.

Definition at line 146 of file choice_dialog.c.

Referenced by choice_dialog_add().

◆ choice_dialog_end()

void choice_dialog_end ( GtkWidget dshell)

Choice dialog construction ready

Definition at line 194 of file choice_dialog.c.

Referenced by action_selection_refresh(), popup_action_selection(), popup_choice_dialog(), and popup_workertask_dlg().

◆ choice_dialog_get_nth_button()

static GtkWidget * choice_dialog_get_nth_button ( GtkWidget cd,
int  button 
)
static

◆ choice_dialog_get_number_of_buttons()

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.

Referenced by action_entry(), choice_dialog_add(), and popup_action_selection().

◆ choice_dialog_set_hide()

void choice_dialog_set_hide ( GtkWidget dshell,
gboolean  setting 
)

Set hide property of choice dialog

Definition at line 207 of file choice_dialog.c.

Referenced by popup_action_selection().

◆ choice_dialog_start()

GtkWidget * choice_dialog_start ( GtkWindow parent,
const gchar name,
const gchar text 
)

Create choice dialog

Definition at line 103 of file choice_dialog.c.

Referenced by popup_action_selection(), popup_choice_dialog(), and popup_workertask_dlg().

◆ popup_choice_dialog()

GtkWidget * popup_choice_dialog ( GtkWindow parent,
const gchar dialogname,
const gchar text,
  ... 
)

Open new choice dialog.

Definition at line 215 of file choice_dialog.c.