summaryrefslogtreecommitdiff
path: root/plugins/media-keys/test-media-keys.c
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-07-05 02:16:45 +0200
committerinfirit <[email protected]>2014-10-09 16:51:29 +0200
commit1eadf051aed2cbf103e2e9653107339be01a5740 (patch)
tree1e3d0763437792f1e0cad37c2c68c47a396c25e6 /plugins/media-keys/test-media-keys.c
parent8481ebdc843ec212e59f98c8ff5f718485f864c0 (diff)
downloadmate-settings-daemon-1eadf051aed2cbf103e2e9653107339be01a5740.tar.bz2
mate-settings-daemon-1eadf051aed2cbf103e2e9653107339be01a5740.tar.xz
Clean things up a bit, update copyright, remove unused code, fix NEWS and compiler warnings
Diffstat (limited to 'plugins/media-keys/test-media-keys.c')
-rw-r--r--plugins/media-keys/test-media-keys.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/media-keys/test-media-keys.c b/plugins/media-keys/test-media-keys.c
index ce1e18a..51ea1e3 100644
--- a/plugins/media-keys/test-media-keys.c
+++ b/plugins/media-keys/test-media-keys.c
@@ -35,8 +35,7 @@ int
main (int argc,
char **argv)
{
- GError *error;
- gboolean res;
+ GError *error = NULL;
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, MATE_SETTINGS_LOCALEDIR);
@@ -46,7 +45,6 @@ main (int argc,
textdomain (GETTEXT_PACKAGE);
#endif
- error = NULL;
if (! gtk_init_with_args (&argc, &argv, NULL, NULL, NULL, &error)) {
fprintf (stderr, "%s", error->message);
g_error_free (error);
@@ -56,7 +54,7 @@ main (int argc,
manager = msd_media_keys_manager_new ();
error = NULL;
- res = msd_media_keys_manager_start (manager, &error);
+ msd_media_keys_manager_start (manager, &error);
gtk_main ();