[gtk/wip/nirbheek/gtk-3-24-meson: 29/48] examples/bp/bloatpad.c: Declare variables at top-of-block
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/nirbheek/gtk-3-24-meson: 29/48] examples/bp/bloatpad.c: Declare variables at top-of-block
- Date: Fri, 29 Mar 2019 08:19:46 +0000 (UTC)
commit e4ee849bd2df050660fb2704ffc654dad08f4b6c
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]