[gtk/wip/fanc999/gtk-3-24-meson-msvc: 10/14] testsuite/gtk/stylecontext.c: Declare variables at top-of-block



commit 8db2d731eb48766dfe9165d2ac56edbf6c53a195
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Mar 13 13:04:06 2019 +0800

    testsuite/gtk/stylecontext.c: Declare variables at top-of-block
    
    This will ensure the code builds on pre-C99 compilers.

 testsuite/gtk/stylecontext.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/gtk/stylecontext.c b/testsuite/gtk/stylecontext.c
index 6ae7ff9c61..83fde7c5b4 100644
--- a/testsuite/gtk/stylecontext.c
+++ b/testsuite/gtk/stylecontext.c
@@ -374,11 +374,12 @@ test_style_priorities_setup (PrioritiesFixture *f,
                              gconstpointer      unused)
 {
   GError *error = NULL;
+  GtkWidgetPath *path;
   f->blue_provider = gtk_css_provider_new ();
   f->red_provider = gtk_css_provider_new ();
   f->green_provider = gtk_css_provider_new ();
   f->context = gtk_style_context_new ();
-  GtkWidgetPath *path = gtk_widget_path_new ();
+  path = gtk_widget_path_new ();
 
   gtk_css_provider_load_from_data (f->blue_provider, "* { color: blue; }", -1, &error);
   g_assert_no_error (error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]