summaryrefslogtreecommitdiff
path: root/examples/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/monitor.c')
-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);