00001 /*************************************************************************** 00002 begin : Sun May 16 2010 00003 copyright : (C) 2010 by Martin Preuss 00004 email : martin@libchipcard.de 00005 00006 *************************************************************************** 00007 * Please see toplevel file COPYING for license details * 00008 ***************************************************************************/ 00009 00010 #ifndef GTK2_GUI_DIALOG_L_H 00011 #define GTK2_GUI_DIALOG_L_H 00012 00013 00014 #include <gwen-gui-gtk2/gtk2_gui.h> 00015 00016 00017 #include <gtk/gtk.h> 00018 00019 #include <gwenhywfar/dialog_be.h> 00020 00021 00022 #define GTK2_GUI_DIALOG_DEFAULT_BOX_SPACING 3 00023 00024 00025 typedef struct { 00026 GWEN_DIALOG *dialog; 00027 GtkWindow *window; 00028 int response; 00029 GMainLoop *loop; 00030 int destroyed; 00031 } RunInfo; 00032 00033 00034 00035 void Gtk2Gui_Dialog_Extend(GWEN_DIALOG *dlg); 00036 void Gtk2Gui_Dialog_Unextend(GWEN_DIALOG *dlg); 00037 00038 int Gtk2Gui_Dialog_Setup(GWEN_DIALOG *dlg, GtkWidget *parentWindow); 00039 00040 00041 GtkWidget *Gtk2Gui_Dialog_GetMainWidget(const GWEN_DIALOG *dlg); 00042 00043 00044 int GTK2_Gui_Dialog_Run(GWEN_DIALOG *dlg, int timeout); 00045 void Gtk2Gui_Dialog_Leave(GWEN_DIALOG *dlg, int result); 00046 00047 int Gtk2Gui_GetRawText(const char *text, GWEN_BUFFER *tbuf); 00048 00049 #endif 00050 00051