[gtk+/gtk-3-20] app: fix indentation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] app: fix indentation
- Date: Tue, 19 Apr 2016 14:56:34 +0000 (UTC)
commit b51455712f870c69c40d934742647f49cc8560a9
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Apr 9 15:21:27 2016 +0200
app: fix indentation
And add missing curly braces.
gtk/gtkapplication.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 454c610..fde1b23 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -607,14 +607,16 @@ gtk_application_load_resources (GtkApplication *application)
path = g_strconcat (base_path, "/gtk/help-overlay.ui", NULL);
if (g_resources_get_info (path, G_RESOURCE_LOOKUP_FLAGS_NONE, NULL, NULL, NULL))
- {
- const gchar * const accels[] = { "<Primary>F1", "<Primary>question", NULL };
+ {
+ const gchar * const accels[] = { "<Primary>F1", "<Primary>question", NULL };
- application->priv->help_overlay_path = path;
- gtk_application_set_accels_for_action (application, "win.show-help-overlay", accels);
- }
- else
- g_free (path);
+ application->priv->help_overlay_path = path;
+ gtk_application_set_accels_for_action (application, "win.show-help-overlay", accels);
+ }
+ else
+ {
+ g_free (path);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]