gwenhywfar 5.12.0
gtk3_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 GTK3_GUI_DIALOG_L_H
11#define GTK3_GUI_DIALOG_L_H
12
13
14#include <gwen-gui-gtk3/gtk3_gui.h>
15
16
17#include <gtk/gtk.h>
18
19#include <gwenhywfar/dialog_be.h>
20
21
22#define GTK3_GUI_DIALOG_DEFAULT_BOX_SPACING 3
23
24
25typedef struct {
26 GWEN_DIALOG *dialog;
27 GtkWindow *window;
28 int response;
29 GMainLoop *loop;
30 int destroyed;
31} RunInfo;
32
33
34
37
38int Gtk3Gui_Dialog_Setup(GWEN_DIALOG *dlg, GtkWidget *parentWindow);
39
40
41GtkWidget *Gtk3Gui_Dialog_GetMainWidget(const GWEN_DIALOG *dlg);
42
43
44int GTK3_Gui_Dialog_Run(GWEN_DIALOG *dlg, int timeout);
45void Gtk3Gui_Dialog_Leave(GWEN_DIALOG *dlg, int result);
46
47int Gtk3Gui_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
void Gtk3Gui_Dialog_Unextend(GWEN_DIALOG *dlg)
int Gtk3Gui_Dialog_Setup(GWEN_DIALOG *dlg, GtkWidget *parentWindow)
void Gtk3Gui_Dialog_Extend(GWEN_DIALOG *dlg)
GtkWidget * Gtk3Gui_Dialog_GetMainWidget(const GWEN_DIALOG *dlg)
int Gtk3Gui_GetRawText(const char *text, GWEN_BUFFER *tbuf)
int GTK3_Gui_Dialog_Run(GWEN_DIALOG *dlg, int timeout)
void Gtk3Gui_Dialog_Leave(GWEN_DIALOG *dlg, int result)