[gnome-todo] main: simplify main
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] main: simplify main
- Date: Fri, 29 Sep 2017 01:22:58 +0000 (UTC)
commit dc20699584897eddf80c30c5c268a2d00d595f18
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Sep 28 20:43:03 2017 -0300
main: simplify main
src/main.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 78d0618..07e2d81 100644
--- a/src/main.c
+++ b/src/main.c
@@ -26,8 +26,7 @@ gint
main (gint argc,
char *argv[])
{
- GtdApplication *app;
- int status;
+ g_autoptr (GtdApplication) app;
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -36,10 +35,6 @@ main (gint argc,
app = gtd_application_new ();
g_application_set_default (G_APPLICATION (app));
- status = g_application_run (G_APPLICATION (app), argc, argv);
-
- g_object_unref (app);
-
- return status;
+ return g_application_run (G_APPLICATION (app), argc, argv);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]