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 25 typedef struct { 26 GWEN_DIALOG *dialog; 27 GtkWindow *window; 28 int response; 29 GMainLoop *loop; 30 int destroyed; 31 } RunInfo; 32 33 34 35 void Gtk3Gui_Dialog_Extend(GWEN_DIALOG *dlg); 36 void Gtk3Gui_Dialog_Unextend(GWEN_DIALOG *dlg); 37 38 int Gtk3Gui_Dialog_Setup(GWEN_DIALOG *dlg, GtkWidget *parentWindow); 39 40 41 GtkWidget *Gtk3Gui_Dialog_GetMainWidget(const GWEN_DIALOG *dlg); 42 43 44 int GTK3_Gui_Dialog_Run(GWEN_DIALOG *dlg, int timeout); 45 void Gtk3Gui_Dialog_Leave(GWEN_DIALOG *dlg, int result); 46 47 int Gtk3Gui_GetRawText(const char *text, GWEN_BUFFER *tbuf); 48 49 #endif 50 51 52