Freeciv-3.2
Loading...
Searching...
No Matches
Data Structures | Functions
inputdlg.c File Reference
#include <stdio.h>
#include <gtk/gtk.h>
#include "fcintl.h"
#include "log.h"
#include "mem.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "inputdlg.h"

Go to the source code of this file.

Data Structures

struct  input_dialog_data
 

Functions

static void input_dialog_response (GtkDialog *shell, gint response, gpointer data)
 
static void input_dialog_close (GtkDialog *shell, gpointer data)
 
GtkWidgetinput_dialog_create (GtkWindow *parent, const char *dialogname, const char *text, const char *postinputtest, input_dialog_callback_t response_callback, gpointer response_cli_data)
 

Function Documentation

◆ input_dialog_close()

static void input_dialog_close ( GtkDialog shell,
gpointer  data 
)
static

Called when user closes dialog with key (Esc).

Definition at line 58 of file inputdlg.c.

Referenced by input_dialog_create().

◆ input_dialog_create()

GtkWidget * input_dialog_create ( GtkWindow parent,
const char dialogname,
const char text,
const char postinputtest,
input_dialog_callback_t  response_callback,
gpointer  response_cli_data 
)

Create a popup with a text entry box and "OK" and "Cancel" buttons.

Definition at line 66 of file inputdlg.c.

Referenced by cma_add_preset_callback(), popup_newcity_dialog(), and rename_callback().

◆ input_dialog_response()

static void input_dialog_response ( GtkDialog shell,
gint  response,
gpointer  data 
)
static

Called when user dismisses dialog – either to accept or to cancel.

Definition at line 41 of file inputdlg.c.

Referenced by input_dialog_close(), and input_dialog_create().