From 98613382a4b897012e78fff60b0cb7cf7ef97ad2 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 25 Jun 2010 11:41:05 +0100 Subject: [PATCH] test-text-field: Use the system font instead of using Sans --- tests/interactive/test-text-field.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/interactive/test-text-field.c b/tests/interactive/test-text-field.c index bc075e5..4bc14cd 100644 --- a/tests/interactive/test-text-field.c +++ b/tests/interactive/test-text-field.c @@ -2,8 +2,6 @@ #include #include -#define FONT "Mono Bold 14px" - static void on_entry_paint (ClutterActor *actor, gpointer data) @@ -217,7 +215,6 @@ create_label (const ClutterColor *color, clutter_actor_set_width (retval, 200); - clutter_text_set_font_name (CLUTTER_TEXT (retval), FONT); clutter_text_set_color (CLUTTER_TEXT (retval), color); clutter_text_set_markup (CLUTTER_TEXT (retval), text); clutter_text_set_editable (CLUTTER_TEXT (retval), FALSE); @@ -234,7 +231,7 @@ create_entry (const ClutterColor *color, gunichar password_char, gint max_length) { - ClutterActor *retval = clutter_text_new_full (FONT, text, color); + ClutterActor *retval = clutter_text_new_full (NULL, text, color); ClutterColor selection = { 0, }; clutter_actor_set_width (retval, 200); @@ -280,8 +277,8 @@ test_text_field_main (gint argc, stage = clutter_stage_get_default (); clutter_stage_set_color (CLUTTER_STAGE (stage), &background_color); - clutter_units_em_for_font (&h_padding, FONT, 2.0); /* 2em */ - clutter_units_em_for_font (&v_padding, FONT, 3.0); /* 3em */ + clutter_units_em_for_font (&h_padding, NULL, 2.0); /* 2em */ + clutter_units_em_for_font (&v_padding, NULL, 3.0); /* 3em */ g_print ("padding: h:%.2f px, v:%.2f px\n", clutter_units_to_pixels (&h_padding), -- 2.7.4