Freeciv-3.3
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 59 of file inputdlg.c.

◆ 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 67 of file inputdlg.c.

◆ 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.