[gtk/gtk-3-24-meson: 35/94] 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/gtk-3-24-meson: 35/94] testsuite/gtk/stylecontext.c: Declare variables at top-of-block
- Date: Mon, 8 Apr 2019 04:09:52 +0000 (UTC)
commit 935fcd66117dc68472095148187513734be642f0
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]