[Xfce4-commits] <midori:master> Update enforced font when font family changes

Christian Dywan noreply at xfce.org
Thu Oct 27 19:36:02 CEST 2011


Updating branch refs/heads/master
         to 4440d25e1148526a633df95cb6c801dba4d34460 (commit)
       from 9937abe3fc6f094da5d0b2fca03327ab40ba9b6f (commit)

commit 4440d25e1148526a633df95cb6c801dba4d34460
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Oct 27 19:27:44 2011 +0200

    Update enforced font when font family changes

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

diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c
index 8467163..477d5d8 100644
--- a/midori/midori-websettings.c
+++ b/midori/midori-websettings.c
@@ -1102,6 +1102,13 @@ notify_default_encoding_cb (GObject*    object,
 }
 
 static void
+notify_default_font_family_cb (GObject*    object,
+                               GParamSpec* pspec)
+{
+    if (katze_object_get_boolean (object, "enforce-font-family"))
+        g_object_set (object, "enforce-font-family", TRUE, NULL);
+}
+static void
 midori_web_settings_init (MidoriWebSettings* web_settings)
 {
     web_settings->download_folder = g_strdup (midori_get_download_dir ());
@@ -1112,6 +1119,8 @@ midori_web_settings_init (MidoriWebSettings* web_settings)
 
     g_signal_connect (web_settings, "notify::default-encoding",
                       G_CALLBACK (notify_default_encoding_cb), NULL);
+    g_signal_connect (web_settings, "notify::default-font-family",
+                      G_CALLBACK (notify_default_font_family_cb), NULL);
 }
 
 static void


More information about the Xfce4-commits mailing list