Update enforced font when font family changes
This commit is contained in:
parent
9937abe3fc
commit
4440d25e11
1 changed files with 9 additions and 0 deletions
|
@ -1101,6 +1101,13 @@ notify_default_encoding_cb (GObject* object,
|
|||
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
|
||||
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_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
|
||||
|
|
Loading…
Reference in a new issue