diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-11-05 07:56:12 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-11-05 07:56:12 +0800 |
commit | 0258ff08cfd0eff38e1d13704ce0d47c99706df5 (patch) | |
tree | 047b0760cbdb45abe9a1a8a1ddc9b91c51e766da | |
parent | f2d0b1b1266b3bd92916dc23019af6322d510f77 (diff) | |
download | gsoc2013-epiphany-0258ff08cfd0eff38e1d13704ce0d47c99706df5.tar gsoc2013-epiphany-0258ff08cfd0eff38e1d13704ce0d47c99706df5.tar.gz gsoc2013-epiphany-0258ff08cfd0eff38e1d13704ce0d47c99706df5.tar.bz2 gsoc2013-epiphany-0258ff08cfd0eff38e1d13704ce0d47c99706df5.tar.lz gsoc2013-epiphany-0258ff08cfd0eff38e1d13704ce0d47c99706df5.tar.xz gsoc2013-epiphany-0258ff08cfd0eff38e1d13704ce0d47c99706df5.tar.zst gsoc2013-epiphany-0258ff08cfd0eff38e1d13704ce0d47c99706df5.zip |
Migrate font family too
2003-11-05 Marco Pesenti Gritti <marco@gnome.org>
* embed/ephy-embed-prefs.h:
* embed/mozilla/mozilla-notifiers.cpp:
Migrate font family too
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | embed/ephy-embed-prefs.h | 3 | ||||
-rw-r--r-- | embed/mozilla/mozilla-notifiers.cpp | 28 |
3 files changed, 37 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2003-11-05 Marco Pesenti Gritti <marco@gnome.org> + + * embed/ephy-embed-prefs.h: + * embed/mozilla/mozilla-notifiers.cpp: + + Migrate font family too + 2003-11-05 Christian Persch <chpe@cvs.gnome.org> * embed/Makefile.am: diff --git a/embed/ephy-embed-prefs.h b/embed/ephy-embed-prefs.h index aaea92845..0ba5954f8 100644 --- a/embed/ephy-embed-prefs.h +++ b/embed/ephy-embed-prefs.h @@ -27,7 +27,8 @@ #define CONF_NETWORK_PROXY_AUTO_URL "/system/proxy/autoconfig_url" #define CONF_NETWORK_PROXY_IGNORE_HOSTS "/system/http_proxy/ignore_hosts" -/* Deprecated, we migrate them */ +/* DEPRECATED, we migrate them */ #define CONF_RENDERING_FONT_VAR_SIZE_OLD "/apps/epiphany/web/font_var_size" #define CONF_RENDERING_FONT_FIXED_SIZE_OLD "/apps/epiphany/web/font_fixed_size" #define CONF_RENDERING_FONT_MIN_SIZE_OLD "/apps/epiphany/web/font_min_size" +#define CONF_RENDERING_FONT_TYPE_OLD "/apps/epiphany/web/default_font_type" diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp index da68ebbc0..9ff7766bf 100644 --- a/embed/mozilla/mozilla-notifiers.cpp +++ b/embed/mozilla/mozilla-notifiers.cpp @@ -521,6 +521,34 @@ mozilla_notifiers_init (EphyEmbedSingle *single) font_infos = g_list_prepend (font_infos, info); } +#ifdef MIGRATE_PIXEL_SIZE + if (migrate_size) + { + char *type; + + type = eel_gconf_get_string (CONF_RENDERING_FONT_TYPE_OLD); + if (type && (strcmp (type, "serif") == 0 || + strcmp (type, "sans-serif") == 0)) + { + char *family; + + g_snprintf (old_key, 255, "%s_%s_%s", + CONF_RENDERING_FONT, type, code); + g_snprintf (key, 255, "%s_%s_%s", + CONF_RENDERING_FONT, "variable", code); + + family = eel_gconf_get_string (old_key); + if (family) + { + eel_gconf_set_string (key, family); + g_free (family); + } + } + + g_free (type); + } +#endif + g_snprintf (key, 255, "%s_%s", CONF_RENDERING_FONT_MIN_SIZE, code); info = g_strconcat ("minimum-size", ".", code, NULL); add_notification_and_notify (client, key, |