[gtk+] gtk/gtkstylecascade.c: Declare variables at beginning of block
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkstylecascade.c: Declare variables at beginning of block
- Date: Mon, 27 Jun 2016 03:59:20 +0000 (UTC)
commit 5f525839da5208f4f70ebf50f1a1abd61b15354f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Jun 27 11:58:42 2016 +0800
gtk/gtkstylecascade.c: Declare variables at beginning of block
gtk/gtkstylecascade.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstylecascade.c b/gtk/gtkstylecascade.c
index 2c890f5..7a8950b 100644
--- a/gtk/gtkstylecascade.c
+++ b/gtk/gtkstylecascade.c
@@ -49,10 +49,11 @@ gtk_style_cascade_iter_next (GtkStyleCascade *cascade,
for (cas = cascade, ix = 0; ix < iter->n_cascades; cas = cas->parent, ix++)
{
+ GtkStyleProviderData *data;
if (iter->cascade_index[ix] <= 0)
continue;
- GtkStyleProviderData *data = &g_array_index (cas->providers,
+ data = &g_array_index (cas->providers,
GtkStyleProviderData,
iter->cascade_index[ix] - 1);
if (highest_priority_data == NULL || data->priority > highest_priority_data->priority)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]