From 0c558fac14266f8c18cfb8bc1d4669ed35868c2f Mon Sep 17 00:00:00 2001 From: Michal Ratajsky Date: Fri, 18 Jul 2014 17:55:53 +0200 Subject: More porting work along with fixes and cleanups --- mate-volume-control/src/applet-main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mate-volume-control/src/applet-main.c') diff --git a/mate-volume-control/src/applet-main.c b/mate-volume-control/src/applet-main.c index 34151ba..1c260fc 100644 --- a/mate-volume-control/src/applet-main.c +++ b/mate-volume-control/src/applet-main.c @@ -1,6 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright (C) 2008 Red Hat, Inc. + * Copyright (C) 2014 Michal Ratajsky * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -20,8 +21,9 @@ #include "config.h" -#include #include +#include +#include #include #include @@ -37,7 +39,7 @@ main (int argc, char **argv) { GError *error = NULL; GvcApplet *applet; - UniqueApp *app = NULL; + UniqueApp *app; GOptionEntry entries[] = { { "version", 'v', 0, G_OPTION_ARG_NONE, &show_version, N_("Version of this application"), NULL }, { NULL } @@ -51,6 +53,7 @@ main (int argc, char **argv) (char *) _(" — MATE Volume Control Applet"), entries, GETTEXT_PACKAGE, &error); + if (error != NULL) { g_warning ("%s", error->message); return 1; -- cgit v1.2.1