]> spindle.queued.net Git - midori/commitdiff
Enforce monospace font elements separately
authorChristian Dywan <christian@twotoasts.de>
Wed, 16 Nov 2011 00:12:04 +0000 (01:12 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 16 Nov 2011 01:08:30 +0000 (02:08 +0100)
Fixes: https://bugs.launchpad.net/bugs/888814
midori/midori-websettings.c

index 837c3cee487f239053e7b8d8af610fe3a2a4b10a..cadb650696a01a8ed72eecb5bfbfead407accda3 100644 (file)
@@ -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