From 61988f3a30a6a8e76530c36482b1227571721fd4 Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 31 Aug 2005 11:40:06 +0000 Subject: separated UI code from prefs_common.c and prefs_account.c. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@533 ee746299-78ed-0310-b773-934348b2243d --- src/prefs_ui.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/prefs_ui.h') diff --git a/src/prefs_ui.h b/src/prefs_ui.h index 9d921aae..2c3110bf 100644 --- a/src/prefs_ui.h +++ b/src/prefs_ui.h @@ -31,6 +31,7 @@ #include typedef struct _PrefsDialog PrefsDialog; +typedef struct _PrefsUIData PrefsUIData; #include "prefs.h" #include "gtkutils.h" @@ -41,6 +42,14 @@ typedef struct _PrefsDialog PrefsDialog; #define VBOX_BORDER 16 #define DEFAULT_ENTRY_WIDTH 80 +struct _PrefsUIData +{ + gchar *name; + GtkWidget **widget; + DataSetFunc data_set_func; + WidgetSetFunc widget_set_func; +}; + struct _PrefsDialog { GtkWidget *window; @@ -126,6 +135,9 @@ void prefs_dialog_destroy (PrefsDialog *dialog); void prefs_button_toggled (GtkToggleButton *toggle_btn, GtkWidget *widget); +void prefs_register_ui (PrefParam *param, + PrefsUIData *ui_data); + void prefs_set_dialog (PrefParam *param); void prefs_set_data_from_dialog (PrefParam *param); void prefs_set_dialog_to_default(PrefParam *param); -- cgit v1.2.3