[gtk+] tests: fix testcalendar
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+] tests: fix testcalendar
- Date: Fri,  7 Mar 2014 01:49:23 +0000 (UTC)
commit dc26dfd0c22039c37bb3dc95b4a2bead28ecd165
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 7 02:48:07 2014 +0100
    tests: fix testcalendar
    
    Missing argument in gtk_style_context_get(), fooled by varargs.
 tests/testcalendar.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/testcalendar.c b/tests/testcalendar.c
index 84de5ec..86386d7 100644
--- a/tests/testcalendar.c
+++ b/tests/testcalendar.c
@@ -476,7 +476,8 @@ create_calendar(void)
   size = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
 
   context = gtk_widget_get_style_context (calendar);
-  gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL, &font_desc, NULL);
+  gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL,
+                        GTK_STYLE_PROPERTY_FONT, &font_desc, NULL);
   font = pango_font_description_to_string (font_desc);
   button = gtk_font_button_new_with_font (font);
   g_free (font);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]