summaryrefslogtreecommitdiff
path: root/mate-volume-control/src/applet-main.c
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-07-18 17:55:53 +0200
committerinfirit <[email protected]>2014-10-09 16:53:00 +0200
commit0c558fac14266f8c18cfb8bc1d4669ed35868c2f (patch)
treefb7479547b7c1032b13a1adc0f33e9c71861251a /mate-volume-control/src/applet-main.c
parent25445eb4cb2d7b49bc435113056587f83b742104 (diff)
downloadmate-media-0c558fac14266f8c18cfb8bc1d4669ed35868c2f.tar.bz2
mate-media-0c558fac14266f8c18cfb8bc1d4669ed35868c2f.tar.xz
More porting work along with fixes and cleanups
Diffstat (limited to 'mate-volume-control/src/applet-main.c')
-rw-r--r--mate-volume-control/src/applet-main.c7
1 files changed, 5 insertions, 2 deletions
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 <[email protected]>
*
* 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 <glib/gi18n.h>
#include <glib.h>
+#include <glib/gi18n.h>
+#include <glib-object.h>
#include <gtk/gtk.h>
#include <libintl.h>
@@ -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;