[gtk/gtk-3-24-meson: 32/95] examples/bp/bloatpad.c: Declare variables at top-of-block



commit 988d2dd077629f3d29c9100e362c4c49dd7d51f4
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Mar 13 13:03:21 2019 +0800

    examples/bp/bloatpad.c: Declare variables at top-of-block
    
    This is to ensure that the code will build on pre-C99 compilers.

 examples/bp/bloatpad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/examples/bp/bloatpad.c b/examples/bp/bloatpad.c
index 13efdcb7eb..d89db89a73 100644
--- a/examples/bp/bloatpad.c
+++ b/examples/bp/bloatpad.c
@@ -537,6 +537,7 @@ bloat_pad_startup (GApplication *application)
     { "win.justify::center", { "<Primary>m", NULL } },
     { "win.justify::right", { "<Primary>r", NULL } }
   };
+  const gchar *new_accels[] = { "<Primary>n", "<Primary>t", NULL };
 
   G_APPLICATION_CLASS (bloat_pad_parent_class)
     ->startup (application);
@@ -604,7 +605,6 @@ bloat_pad_startup (GApplication *application)
   g_object_unref (item);
   g_object_unref (icon);
 
-  const gchar *new_accels[] = { "<Primary>n", "<Primary>t", NULL };
   gtk_application_set_accels_for_action (GTK_APPLICATION (application), "app.new", new_accels);
 
   dump_accels (GTK_APPLICATION (application));


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