[gtk+/gtk-3-0] styleproperties: don't force replacing the font description
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-0] styleproperties: don't force replacing the font description
- Date: Thu, 17 Mar 2011 18:34:32 +0000 (UTC)
commit 89c1d93b68aaaebeb5db0dc2a58895721c6665aa
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Mar 17 14:31:57 2011 -0400
styleproperties: don't force replacing the font description
Otherwise custom fonts will always get overridden by the default stored
in GtkSettings when merging them.
https://bugzilla.gnome.org/show_bug.cgi?id=644975
gtk/gtkstyleproperties.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index 38ededc..c89b31a 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, replace);
+ pango_font_description_merge (font_desc, font_desc_to_merge, FALSE);
}
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]