[Xfce4-commits] <midori:master> Enforce monospace font elements separately

Christian Dywan noreply at xfce.org
Wed Nov 16 02:10:03 CET 2011


Updating branch refs/heads/master
         to ed5561567b53d16153843ff558a890f8da53a53e (commit)
       from 7cf7dea9ee64dfdbd8ca795d61e73480335105c3 (commit)

commit ed5561567b53d16153843ff558a890f8da53a53e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Nov 16 01:12:04 2011 +0100

    Enforce monospace font elements separately
    
    Fixes: https://bugs.launchpad.net/bugs/888814

 midori/midori-websettings.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c
index 837c3ce..cadb650 100644
--- a/midori/midori-websettings.c
+++ b/midori/midori-websettings.c
@@ -1551,10 +1551,15 @@ midori_web_settings_set_property (GObject*      object,
         {
             gchar* font_family = katze_object_get_string (web_settings,
                                                           "default-font-family");
-            gchar* css = g_strdup_printf ("* { font-family: %s !important; }",
-                                          font_family);
+            gchar* monospace = katze_object_get_string (web_settings,
+                                                        "monospace-font-family");
+            gchar* css = g_strdup_printf ("body * { font-family: %s !important; } \
+                code, code *, pre, pre *, blockquote, blockquote *, \
+                input, textarea { font-family: %s !important; }",
+                                          font_family, monospace);
             midori_web_settings_add_style (web_settings, "enforce-font-family", css);
             g_free (font_family);
+            g_free (monospace);
             g_free (css);
         }
         else


More information about the Xfce4-commits mailing list