2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #define PREFSWINDOW_H 1
26 typedef struct _PrefsPage PrefsPage;
27 typedef struct _PrefsWindow PrefsWindow;
29 typedef void (*PrefsCreateWidgetFunc) (PrefsPage *, GtkWindow *window, gpointer);
30 typedef void (*PrefsDestroyWidgetFunc) (PrefsPage *);
31 typedef void (*PrefsSavePageFunc) (PrefsPage *);
32 typedef gboolean (*PrefsCanClosePageFunc) (PrefsPage *);
33 typedef void (*PrefsOpenCallbackFunc) (GtkWindow *);
34 typedef void (*PrefsCloseCallbackFunc) (GtkWindow *);
43 PrefsCreateWidgetFunc create_widget;
44 PrefsDestroyWidgetFunc destroy_widget;
45 PrefsSavePageFunc save_page;
46 PrefsCanClosePageFunc can_close;
50 PREFS_PAGE_TITLE, /* page title */
51 PREFS_PAGE_DATA, /* PrefsTreeNode data */
52 PREFS_PAGE_DATA_AUTO_FREE, /* auto free for PREFS_PAGE_DATA */
53 PREFS_PAGE_WEIGHT, /* weight */
54 PREFS_PAGE_INDEX, /* index in original page list */
58 typedef struct _PrefsTreeNode PrefsTreeNode;
65 GtkWidget *scrolledwindow1;
69 GtkWidget *labelframe;
72 GtkWidget *confirm_area;
74 GtkWidget *cancel_btn;
78 PrefsCloseCallbackFunc open_cb;
79 PrefsCloseCallbackFunc close_cb;
81 GtkWidget *empty_page;
91 gfloat treeweight; /* GTK2: not used */
94 void prefswindow_open_full (const gchar *title,
98 gint *save_width, gint *save_height,
99 gboolean preload_pages,
100 PrefsOpenCallbackFunc open_cb,
101 PrefsCloseCallbackFunc close_cb);
103 void prefswindow_open (const gchar *title,
106 gint *save_width, gint *save_height,
107 PrefsOpenCallbackFunc open_cb,
108 PrefsCloseCallbackFunc close_cb);