[recipes] Trivial formatting fix
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Trivial formatting fix
- Date: Wed, 15 Mar 2017 03:16:37 +0000 (UTC)
commit 897ad834e5e69d3de9daed45a0e91b14c8e81647
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 14 21:59:23 2017 -0400
Trivial formatting fix
src/gr-about-dialog.c | 2 +-
src/gr-account.c | 1 -
src/gr-app.c | 35 ++++++++++++++++-------------------
3 files changed, 17 insertions(+), 21 deletions(-)
---
diff --git a/src/gr-about-dialog.c b/src/gr-about-dialog.c
index fe9ffe2..7f1815f 100644
--- a/src/gr-about-dialog.c
+++ b/src/gr-about-dialog.c
@@ -372,7 +372,7 @@ text_buffer_append_printf (GtkTextBuffer *buffer,
#pragma GCC diagnostic pop
static void
-text_buffer_append_link (GtkTextView *view,
+text_buffer_append_link (GtkTextView *view,
GtkTextBuffer *buffer,
const char *name,
const char *uri)
diff --git a/src/gr-account.c b/src/gr-account.c
index 16ef0dc..1e15859 100644
--- a/src/gr-account.c
+++ b/src/gr-account.c
@@ -252,4 +252,3 @@ gr_ensure_user_chef (GtkWindow *window,
gr_account_get_information (window, got_account_info, cbdata, NULL);
}
-
diff --git a/src/gr-app.c b/src/gr-app.c
index 1759637..a411113 100644
--- a/src/gr-app.c
+++ b/src/gr-app.c
@@ -115,8 +115,8 @@ about_activated (GSimpleAction *action,
static void
report_issue_activated (GSimpleAction *action,
- GVariant *parameter,
- gpointer app)
+ GVariant *parameter,
+ gpointer app)
{
GtkWindow *win;
@@ -340,12 +340,14 @@ gr_app_startup (GApplication *app)
const char *detailed_action;
const char *accelerators[2];
} accels[] = {
- { "app.quit", { "<Primary>q", NULL } },
+ { "app.quit", { "<Primary>q", NULL } },
{ "app.search('')", { "<Primary>f", NULL } },
- { "win.copy", { "<Primary>c", NULL } },
- { "win.paste", { "<Primary>v", NULL } },
+ { "win.copy", { "<Primary>c", NULL } },
+ { "win.paste", { "<Primary>v", NULL } },
};
int i;
+ g_autoptr(GtkBuilder) builder = NULL;
+ GObject *menu;
G_APPLICATION_CLASS (gr_app_parent_class)->startup (app);
@@ -368,20 +370,15 @@ gr_app_startup (GApplication *app)
accels[i].accelerators);
}
- {
- g_autoptr(GtkBuilder) builder = NULL;
- GObject *menu;
-
- builder = gtk_builder_new_from_resource ("/org/gnome/Recipes/menus.ui");
- if (strcmp (G_OBJECT_TYPE_NAME (gdk_display_get_default ()), "GdkQuartzDisplay") == 0) {
- menu = gtk_builder_get_object (builder, "menubar");
- gtk_application_set_menubar (GTK_APPLICATION (app), G_MENU_MODEL (menu));
- }
- else {
- menu = gtk_builder_get_object (builder, "app-menu");
- gtk_application_set_app_menu (GTK_APPLICATION (app), G_MENU_MODEL (menu));
- }
- }
+ builder = gtk_builder_new_from_resource ("/org/gnome/Recipes/menus.ui");
+ if (strcmp (G_OBJECT_TYPE_NAME (gdk_display_get_default ()), "GdkQuartzDisplay") == 0) {
+ menu = gtk_builder_get_object (builder, "menubar");
+ gtk_application_set_menubar (GTK_APPLICATION (app), G_MENU_MODEL (menu));
+ }
+ else {
+ menu = gtk_builder_get_object (builder, "app-menu");
+ gtk_application_set_app_menu (GTK_APPLICATION (app), G_MENU_MODEL (menu));
+ }
load_application_css (GR_APP (app));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]