summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-06-26 01:35:56 +0200
committerMichal Ratajsky <[email protected]>2014-06-26 01:35:56 +0200
commitf235385f34c81d4cd9092b94cb24670eb25421fa (patch)
tree489c2b9549302493da9b2d56b92aa4613722a90a /examples
parent0362ccf20d51fa27d7febd0e6c0fa368f2f9e663 (diff)
downloadlibmatemixer-f235385f34c81d4cd9092b94cb24670eb25421fa.tar.bz2
libmatemixer-f235385f34c81d4cd9092b94cb24670eb25421fa.tar.xz
Minor fixes
Diffstat (limited to 'examples')
-rw-r--r--examples/monitor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/monitor.c b/examples/monitor.c
index a196b6a..7a3240b 100644
--- a/examples/monitor.c
+++ b/examples/monitor.c
@@ -269,10 +269,6 @@ int main (int argc, char *argv[])
{ NULL }
};
- /* Initialize the library, if the function returns FALSE, it is not usable */
- if (!mate_mixer_init ())
- return 1;
-
context = g_option_context_new ("- libmatemixer monitor");
g_option_context_add_main_entries (context, entries, NULL);
@@ -283,6 +279,10 @@ int main (int argc, char *argv[])
return 1;
}
+ /* Initialize the library, if the function returns FALSE, it is not usable */
+ if (!mate_mixer_init ())
+ return 1;
+
setlocale (LC_ALL, "");
/* Set up the controller, through which we access the main functionality */
@@ -300,7 +300,7 @@ int main (int argc, char *argv[])
else if (!strcmp (backend, "null"))
mate_mixer_control_set_backend_type (control, MATE_MIXER_BACKEND_NULL);
else
- g_printerr ("Sound system backend '%s' is unknown, it will be auto-detected.",
+ g_printerr ("Sound system backend '%s' is unknown, it will be auto-detected.\n",
backend);
g_free (backend);