]> spindle.queued.net Git - midori/commitdiff
Always use Glib error directly if gtk_init failed
authorChristian Dywan <christian@twotoasts.de>
Tue, 23 Sep 2008 15:16:22 +0000 (17:16 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 23 Sep 2008 15:16:22 +0000 (17:16 +0200)
midori/main.c

index 84eb844b2f0901eee5d552a7caf05c1a9da99fae..de898e2de216d0cd81806b4779b50008a32d0402 100644 (file)
@@ -504,10 +504,7 @@ main (int    argc,
     if (!gtk_init_with_args (&argc, &argv, _("[URIs]"), entries,
                              GETTEXT_PACKAGE, &error))
     {
-        if (error->code == G_OPTION_ERROR_UNKNOWN_OPTION)
-            g_print ("%s - %s\n", _("Midori"), _("Unknown argument."));
-        else
-            g_print ("%s - %s", _("Midori"), _("Failed to setup interface."));
+        g_print ("%s - %s\n", _("Midori"), error->message);
         g_error_free (error);
         return 1;
     }