[gtk+] Revert "styleproperties: don't force replacing the font description"
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Revert "styleproperties: don't force replacing the font description"
- Date: Wed, 23 Mar 2011 14:00:10 +0000 (UTC)
commit ec2055d1b0bd5ea094c5ea2eb68c41beec35dc84
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Mar 22 14:35:23 2011 -0400
Revert "styleproperties: don't force replacing the font description"
It turns out the bug is more complicated than I originally understood.
Not replacing the font description fields while merging here makes it
impossible for application's CSS to override fonts.
This reverts commit 89c1d93b68aaaebeb5db0dc2a58895721c6665aa.
https://bugzilla.gnome.org/show_bug.cgi?id=645458
gtk/gtkstyleproperties.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index c89b31a..38ededc 100644
--- a/gtk/gtkstyleproperties.c
+++ b/gtk/gtkstyleproperties.c
@@ -1243,7 +1243,7 @@ gtk_style_properties_merge (GtkStyleProperties *props,
font_desc = g_value_get_boxed (value);
font_desc_to_merge = g_value_get_boxed (&data->value);
- pango_font_description_merge (font_desc, font_desc_to_merge, FALSE);
+ pango_font_description_merge (font_desc, font_desc_to_merge, replace);
}
else if (G_VALUE_TYPE (&data->value) == G_TYPE_PTR_ARRAY &&
G_IS_VALUE (value))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]