0.8.0
[geeqie.git] / src / utildlg.h
1 /*
2  * GQview image viewer
3  * (C)2000 John Ellis
4  *
5  * Author: John Ellis
6  *
7  */
8
9 typedef struct _FileDialog FileDialog;
10 struct _FileDialog
11 {
12         gint type;
13         gint multiple_files;
14
15         GtkWidget *dialog;
16         GtkWidget *vbox;
17         GtkWidget *entry;
18
19         gchar *source_path;
20         GList *source_list;
21
22         gchar *dest_path;
23 };
24
25 typedef struct _ConfirmDialog ConfirmDialog;
26 struct _ConfirmDialog
27 {
28         GtkWidget *dialog;
29         GtkWidget *util_hbox;   /* place anything you want here */
30         GtkWidget *hbox;        /* buttons */
31         void (*cancel_cb)(GtkWidget *, gpointer);
32         gpointer data;
33 };
34
35
36 void warning_dialog(gchar *title, gchar *message);
37
38 ConfirmDialog *confirm_dialog_new(gchar *title, gchar *message, void (*cancel_cb)(GtkWidget *, gpointer), gpointer data);
39 ConfirmDialog *confirm_dialog_new_with_image(gchar *title, gchar *message,
40                                              gchar *img_path1, gchar *img_path2,
41                                              void (*cancel_cb)(GtkWidget *, gpointer), gpointer data);
42
43 void confirm_dialog_add(ConfirmDialog *cd, gchar *text, void (*func_cb)(GtkWidget *, gpointer));
44
45 FileDialog *generic_dialog_new(gchar *title, gchar *text, gchar *btn1, gchar *btn2,
46                 void (*btn1_cb)(GtkWidget *, gpointer),
47                 void (*btn2_cb)(GtkWidget *, gpointer));
48 void generic_dialog_close(GtkWidget *widget, gpointer data);
49