Update enforced font when font family changes

This commit is contained in:
Christian Dywan 2011-10-27 19:27:44 +02:00
parent 9937abe3fc
commit 4440d25e11

View file

@ -1101,6 +1101,13 @@ notify_default_encoding_cb (GObject* object,
g_object_notify (object, "preferred-encoding"); g_object_notify (object, "preferred-encoding");
} }
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 static void
midori_web_settings_init (MidoriWebSettings* web_settings) midori_web_settings_init (MidoriWebSettings* web_settings)
{ {
@ -1112,6 +1119,8 @@ midori_web_settings_init (MidoriWebSettings* web_settings)
g_signal_connect (web_settings, "notify::default-encoding", g_signal_connect (web_settings, "notify::default-encoding",
G_CALLBACK (notify_default_encoding_cb), NULL); 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 static void