[gtk/gtk-3-24-meson: 45/99] examples/bp/bloatpad.c: Declare variables at top-of-block
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24-meson: 45/99] examples/bp/bloatpad.c: Declare variables at top-of-block
- Date: Wed, 3 Apr 2019 19:05:43 +0000 (UTC)
commit 36c990fec5abf35d80a011c097e99fa1297fbcb1
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]