diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-09-10 04:16:23 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-09-10 04:16:23 +0800 |
commit | 391bbbee851c7e90e28322cf48a9277cc7aab883 (patch) | |
tree | 5cb8c2366abe12cc7551aebefe792c4183d324df /embed | |
parent | 47fd3c8f0f15c3482ac51b6ab8de1414d4fd7881 (diff) | |
download | gsoc2013-epiphany-391bbbee851c7e90e28322cf48a9277cc7aab883.tar gsoc2013-epiphany-391bbbee851c7e90e28322cf48a9277cc7aab883.tar.gz gsoc2013-epiphany-391bbbee851c7e90e28322cf48a9277cc7aab883.tar.bz2 gsoc2013-epiphany-391bbbee851c7e90e28322cf48a9277cc7aab883.tar.lz gsoc2013-epiphany-391bbbee851c7e90e28322cf48a9277cc7aab883.tar.xz gsoc2013-epiphany-391bbbee851c7e90e28322cf48a9277cc7aab883.tar.zst gsoc2013-epiphany-391bbbee851c7e90e28322cf48a9277cc7aab883.zip |
First important step in solving the fonts mess. Allow to select the
2003-09-09 Marco Pesenti Gritti <marco@gnome.org>
* data/default-prefs.js:
* data/glade/prefs-dialog.glade:
* embed/ephy-embed-single.c: (ephy_embed_single_get_font_list):
* embed/ephy-embed-single.h:
* embed/mozilla/mozilla-embed-single.cpp:
* embed/mozilla/mozilla-notifiers.cpp:
* src/prefs-dialog.c: (setup_font_menu), (attach_fonts_signals),
(setup_size_controls), (setup_fonts), (prefs_dialog_init):
First important step in solving the fonts mess.
Allow to select the variable width instead of
families. Also use points instead of pixels.
Set a minimum font size by default.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-single.c | 7 | ||||
-rw-r--r-- | embed/ephy-embed-single.h | 8 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 13 | ||||
-rw-r--r-- | embed/mozilla/mozilla-notifiers.cpp | 2 |
4 files changed, 7 insertions, 23 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c index fe42ba07b..83c60026a 100644 --- a/embed/ephy-embed-single.c +++ b/embed/ephy-embed-single.c @@ -159,13 +159,10 @@ ephy_embed_single_get_language_groups (EphyEmbedSingle *shell, gresult ephy_embed_single_get_font_list (EphyEmbedSingle *shell, const char *langGroup, - const char *fontType, - GList **fontList, - char **default_font) + GList **fontList) { EphyEmbedSingleClass *klass = EPHY_EMBED_SINGLE_GET_CLASS (shell); - return klass->get_font_list (shell, langGroup, fontType, fontList, - default_font); + return klass->get_font_list (shell, langGroup, fontList); } gresult diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h index 2ca30f41b..4ef689d3f 100644 --- a/embed/ephy-embed-single.h +++ b/embed/ephy-embed-single.h @@ -127,9 +127,7 @@ struct EphyEmbedSingleClass GList **encodings); gresult (* get_font_list) (EphyEmbedSingle *shell, const char *langGroup, - const char *fontType, - GList **fontList, - char **default_font); + GList **fontList); gresult (* list_cookies) (EphyEmbedSingle *shell, GList **cokies); gresult (* remove_cookies) (EphyEmbedSingle *shell, @@ -172,9 +170,7 @@ gresult ephy_embed_single_get_encodings (EphyEmbedSingle *shell, gresult ephy_embed_single_get_font_list (EphyEmbedSingle *shell, const char *langGroup, - const char *fontType, - GList **fontList, - char **default_font); + GList **fontList); /* Cookies */ gresult ephy_embed_single_list_cookies (EphyEmbedSingle *shell, diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index a850fecd0..4cee89bd5 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -214,9 +214,7 @@ impl_get_language_groups (EphyEmbedSingle *shell, static gresult impl_get_font_list (EphyEmbedSingle *shell, const char *langGroup, - const char *fontType, - GList **fontList, - char **default_font); + GList **fontList); static gresult impl_list_cookies (EphyEmbedSingle *shell, GList **cookies); @@ -811,9 +809,7 @@ impl_get_language_groups (EphyEmbedSingle *shell, static gresult impl_get_font_list (EphyEmbedSingle *shell, const char *langGroup, - const char *fontType, - GList **fontList, - char **default_font) + GList **fontList) { nsresult rv; PRUint32 fontCount; @@ -841,11 +837,6 @@ impl_get_font_list (EphyEmbedSingle *shell, *fontList = g_list_reverse (l); - if (default_font != NULL) - { - *default_font = g_strdup (fontType); - } - return G_OK; } diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp index 6c46fe55e..0b5867921 100644 --- a/embed/mozilla/mozilla-notifiers.cpp +++ b/embed/mozilla/mozilla-notifiers.cpp @@ -440,7 +440,7 @@ mozilla_notifiers_init(EphyEmbedSingle *single) for (i = 0; i < n_fonts_languages; i++) { guint k; - char *types [] = { "serif", "sans-serif", "cursive", "fantasy", "monospace" }; + char *types [] = { "variable", "monospace" }; char key[255]; char *info; |