[gtk/wip/fanc999/gtk-3-24-meson-msvc: 29/36] testsuite/gtk/stylecontext.c: Declare variables at top-of-block
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/fanc999/gtk-3-24-meson-msvc: 29/36] testsuite/gtk/stylecontext.c: Declare variables at top-of-block
- Date: Tue, 26 Mar 2019 08:35:40 +0000 (UTC)
commit 83240dc2c313b2f9e15ab9627c2a7e98462395fa
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]