main: simplify code even more
This commit is contained in:
+2
-5
@@ -27,8 +27,7 @@ int
|
|||||||
main (int argc,
|
main (int argc,
|
||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
GcalApplication *app;
|
g_autoptr (GcalApplication) app;
|
||||||
int status;
|
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
|
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
|
||||||
@@ -37,8 +36,6 @@ main (int argc,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
app = gcal_application_new ();
|
app = gcal_application_new ();
|
||||||
status = g_application_run (G_APPLICATION (app), argc, argv);
|
|
||||||
g_object_unref (app);
|
|
||||||
|
|
||||||
return status;
|
return g_application_run (G_APPLICATION (app), argc, argv);;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user