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_P_H 11 #define GTK3_GUI_DIALOG_P_H 12 13 14 #include "gtk3_gui_dialog_l.h" 15 16 17 typedef struct GTK3_GUI_DIALOG GTK3_GUI_DIALOG; 18 struct GTK3_GUI_DIALOG { 19 GWEN_DIALOG_SETINTPROPERTY_FN setIntPropertyFn; 20 GWEN_DIALOG_GETINTPROPERTY_FN getIntPropertyFn; 21 GWEN_DIALOG_SETCHARPROPERTY_FN setCharPropertyFn; 22 GWEN_DIALOG_GETCHARPROPERTY_FN getCharPropertyFn; 23 24 GtkWidget *mainWidget; 25 26 int response; 27 GMainLoop *loop; 28 int destroyed; 29 30 gulong unmap_handler; 31 gulong destroy_handler; 32 gulong delete_handler; 33 34 }; 35 36 static void GWENHYWFAR_CB Gtk3Gui_Dialog_FreeData(void *bp, void *p); 37 38 39 static int GWENHYWFAR_CB Gtk3Gui_Dialog_SetIntProperty(GWEN_DIALOG *dlg, 40 GWEN_WIDGET *w, 41 GWEN_DIALOG_PROPERTY prop, 42 int index, 43 int value, 44 int doSignal); 45 46 47 static int GWENHYWFAR_CB Gtk3Gui_Dialog_GetIntProperty(GWEN_DIALOG *dlg, 48 GWEN_WIDGET *w, 49 GWEN_DIALOG_PROPERTY prop, 50 int index, 51 int defaultValue); 52 53 static int GWENHYWFAR_CB Gtk3Gui_Dialog_SetCharProperty(GWEN_DIALOG *dlg, 54 GWEN_WIDGET *w, 55 GWEN_DIALOG_PROPERTY prop, 56 int index, 57 const char *value, 58 int doSignal); 59 60 static const char *GWENHYWFAR_CB Gtk3Gui_Dialog_GetCharProperty(GWEN_DIALOG *dlg, 61 GWEN_WIDGET *w, 62 GWEN_DIALOG_PROPERTY prop, 63 int index, 64 const char *defaultValue); 65 66 67 static int Gtk3Gui_Dialog_SetupTree(GWEN_WIDGET *w); 68 69 70 #endif 71 72 73