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 /embed/mozilla/mozilla-notifiers.cpp | |
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
Diffstat (limited to 'embed/mozilla/mozilla-notifiers.cpp')
-rw-r--r-- | embed/mozilla/mozilla-notifiers.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
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, |