diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-06-13 20:46:09 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-06-13 20:46:09 +0800 |
commit | b47075448a59c1419cc21ac8104a58d549962ce6 (patch) | |
tree | 4a27993881f98b9f97559982b78721b364495566 /src/prefs-dialog.c | |
parent | 52c6654061e8bd5c8607defd279fa77dfb3dfb87 (diff) | |
download | gsoc2013-epiphany-b47075448a59c1419cc21ac8104a58d549962ce6.tar.gz gsoc2013-epiphany-b47075448a59c1419cc21ac8104a58d549962ce6.tar.zst gsoc2013-epiphany-b47075448a59c1419cc21ac8104a58d549962ce6.zip |
Add support for string enums.
2003-06-13 Marco Pesenti Gritti <marco@it.gnome.org>
* lib/ephy-dialog.c: (set_config_from_editable),
(set_config_from_optionmenu), (set_config_from_radiobuttongroup),
(set_config_from_spin_button), (set_config_from_togglebutton),
(set_config_from_color), (set_editable_from_config),
(set_optionmenu_from_config), (set_radiobuttongroup_from_config),
(set_spin_button_from_config), (set_togglebutton_from_config),
(set_color_from_config), (prefs_togglebutton_clicked_cb),
(prefs_radiobutton_clicked_cb), (prefs_spinbutton_timeout_cb),
(prefs_color_changed_cb), (prefs_entry_changed_cb),
(prefs_optionmenu_selected_cb), (ephy_dialog_init), (load_props),
(save_props), (free_props), (ephy_dialog_finalize),
(ephy_dialog_add_enum), (init_props), (impl_construct),
(impl_show):
Add support for string enums.
* lib/ephy-dialog.h:
* lib/ephy-prefs.h:
* src/prefs-dialog.c: (prefs_dialog_init):
* data/epiphany.schemas.in:
* embed/downloader-view.c:
* embed/ephy-embed-prefs.h:
* embed/find-dialog.c:
* embed/mozilla/mozilla-embed-single.cpp:
* embed/mozilla/mozilla-notifiers.cpp:
* embed/print-dialog.c:
* lib/Makefile.am:
Cleanup gconf prefs. This breaks compatibility
but better now that later.
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r-- | src/prefs-dialog.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 3dcaa806d..87e62d64b 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -156,6 +156,27 @@ static EncodingAutodetectorInfo encoding_autodetector[] = }; static guint n_encoding_autodetectors = G_N_ELEMENTS (encoding_autodetector); +static const +char *cookies_accept_enum [] = +{ + "anywhere", "current site", "nowhere" +}; +static guint n_cookies_accept_enum = G_N_ELEMENTS (cookies_accept_enum); + +static const +char *cache_compare_enum [] = +{ + "once per session", "every time", "never", "automatic" +}; +static guint n_cache_compare_enum = G_N_ELEMENTS (cache_compare_enum); + +static const +char *proportional_enum [] = +{ + "serif", "sans-serif" +}; +static guint n_proportional_enum = G_N_ELEMENTS (proportional_enum); + enum { FONT_TYPE_SERIF, @@ -1034,6 +1055,13 @@ prefs_dialog_init (PrefsDialog *pd) "prefs-dialog.glade", "prefs_dialog"); + ephy_dialog_add_enum (EPHY_DIALOG (pd), CACHE_COMPARE_PROP, + n_cache_compare_enum, cache_compare_enum); + ephy_dialog_add_enum (EPHY_DIALOG (pd), ACCEPT_COOKIES_PROP, + n_cookies_accept_enum, cookies_accept_enum); + ephy_dialog_add_enum (EPHY_DIALOG (pd), PROPORTIONAL_PROP, + n_proportional_enum, proportional_enum); + pd->priv->window = ephy_dialog_get_control (dialog, WINDOW_PROP); pd->priv->notebook = ephy_dialog_get_control (dialog, NOTEBOOK_PROP); pd->priv->langs = NULL; |