[gtk+] GtkStyleProperties: Assign default value for the font property
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkStyleProperties: Assign default value for the font property
- Date: Mon, 20 Dec 2010 12:57:36 +0000 (UTC)
commit ca7fe1cb730f9459e4fc4466912443b386d83109
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Dec 20 12:26:11 2010 +0100
GtkStyleProperties: Assign default value for the font property
This fixes a failure when running make test, where style queries
happened before there was even an screen.
gtk/gtkstyleproperties.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index c659274..abd9383 100644
--- a/gtk/gtkstyleproperties.c
+++ b/gtk/gtkstyleproperties.c
@@ -853,6 +853,8 @@ lookup_default_value (PropertyNode *node,
{
if (node->pspec->value_type == GTK_TYPE_THEMING_ENGINE)
g_value_set_object (value, gtk_theming_engine_load (NULL));
+ else if (node->pspec->value_type == PANGO_TYPE_FONT_DESCRIPTION)
+ g_value_take_boxed (value, pango_font_description_from_string ("Sans 10"));
else
g_param_value_set_default (node->pspec, value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]