3 typedef struct _E_Confirm_Dialog E_Confirm_Dialog;
6 #ifndef E_CONFIRM_DIALOG_H
7 #define E_CONFIRM_DIALOG_H
9 #define E_CONFIRM_DIALOG_TYPE 0x16f5904e
11 struct _E_Confirm_Dialog
13 E_Object e_obj_inherit;
20 void (*func)(void *data);
25 void (*func)(void *data);
30 void (*func)(void *data);
36 * @title - dialog title
38 * @text - the text show in the dialog
39 * @button_text - "yes" button text
40 * @button2_text - "no" button text
41 * func - the function to call if yes is pressed
42 * func2 - the function to call if no is pressed
43 * data - the pointer passed to func
44 * data2 - the pointer passed to func2
45 * del_func - the function to call before dialog is deleted
46 * del_data - the pointer passer to del_func
48 EAPI E_Confirm_Dialog *e_confirm_dialog_show(const char *title, const char *icon, const char *text, const char *button_text, const char *button2_text, void (*func)(void *data), void (*func2)(void *data), void *data, void *data2, void (*del_func)(void *data), void *del_data);