Commit 55711516 authored by Tristan Matthews's avatar Tristan Matthews

gnome: cleanup, attribution

parent 659200d1
......@@ -11,6 +11,7 @@ AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability dist-xz no-define no-dist-gzip sub
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE([enable])
GNOME_DEBUG_CHECK
GNOME_MAINTAINER_MODE_DEFINES
GNOME_COMPILE_WARNINGS([maximum])
......
/*
* Copyright (C) 2012 Savoir-Faire Linux Inc.
* Copyright (C) 2001-2007 Bastien Nocera <hadess@hadess.net>
* Author: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
......@@ -49,8 +50,9 @@ sflphone_client_command_line_handler(G_GNUC_UNUSED GApplication *application,
g_option_context_set_help_enabled(context, TRUE);
GError *error = NULL;
if (g_option_context_parse(context, &argc, &argv, &error) == FALSE) {
g_print (_("%s\nRun '%s --help' to see a full list of available command line options.\n"),
error->message, argv[0]);
g_print(_("%s\nRun '%s --help' to see a full list of available command line options.\n"
"For versbose debugging set \"G_MESSAGES_DEBUG=all\"\n"),
error->message, argv[0]);
g_error_free(error);
g_option_context_free(context);
return 1;
......@@ -60,8 +62,7 @@ sflphone_client_command_line_handler(G_GNUC_UNUSED GApplication *application,
if (!sflphone_init(&error, client)) {
g_warning("%s", error->message);
GtkWidget *dialog = gtk_message_dialog_new(
NULL,
GtkWidget *dialog = gtk_message_dialog_new(NULL,
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
"Unable to initialize.\nMake sure the daemon is running.\nError: %s",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment