gwenhywfar 5.10.1
gtk2_gui_dialog_l.h
Go to the documentation of this file.
1/***************************************************************************
2 begin : Sun May 16 2010
3 copyright : (C) 2010 by Martin Preuss
4 email : martin@libchipcard.de
5
6 ***************************************************************************
7 * Please see toplevel file COPYING for license details *
8 ***************************************************************************/
9
10#ifndef GTK2_GUI_DIALOG_L_H
11#define GTK2_GUI_DIALOG_L_H
12
13
14#include <gwen-gui-gtk2/gtk2_gui.h>
15
16
17#include <gtk/gtk.h>
18
19#include <gwenhywfar/dialog_be.h>
20
21
22#define GTK2_GUI_DIALOG_DEFAULT_BOX_SPACING 3
23
24
25typedef struct {
27 GtkWindow *window;
29 GMainLoop *loop;
31} RunInfo;
32
33
34
37
38int Gtk2Gui_Dialog_Setup(GWEN_DIALOG *dlg, GtkWidget *parentWindow);
39
40
41GtkWidget *Gtk2Gui_Dialog_GetMainWidget(const GWEN_DIALOG *dlg);
42
43
44int GTK2_Gui_Dialog_Run(GWEN_DIALOG *dlg, int timeout);
45void Gtk2Gui_Dialog_Leave(GWEN_DIALOG *dlg, int result);
46
47int Gtk2Gui_GetRawText(const char *text, GWEN_BUFFER *tbuf);
48
49#endif
50
51
struct GWEN_DIALOG GWEN_DIALOG
Definition: dialog.h:54
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition: buffer.h:38
int Gtk2Gui_GetRawText(const char *text, GWEN_BUFFER *tbuf)
void Gtk2Gui_Dialog_Unextend(GWEN_DIALOG *dlg)
GtkWidget * Gtk2Gui_Dialog_GetMainWidget(const GWEN_DIALOG *dlg)
int GTK2_Gui_Dialog_Run(GWEN_DIALOG *dlg, int timeout)
void Gtk2Gui_Dialog_Extend(GWEN_DIALOG *dlg)
int Gtk2Gui_Dialog_Setup(GWEN_DIALOG *dlg, GtkWidget *parentWindow)
void Gtk2Gui_Dialog_Leave(GWEN_DIALOG *dlg, int result)
GMainLoop * loop
GtkWindow * window
GWEN_DIALOG * dialog