Commit 63138c47 authored by Paolo Borelli's avatar Paolo Borelli Committed by Rodrigo Moya

Fixes #326184

2006-03-16  Paolo Borelli <pborelli@katamail.com>

	Fixes #326184

	* src/main.c (main): deal with errors from gtk_init_with_args.
parent 800a1dd8
2006-03-16 Paolo Borelli <pborelli@katamail.com>
Fixes #326184
* src/main.c (main): deal with errors from gtk_init_with_args.
2006-02-27 Rodrigo Moya <rodrigo@novell.com>
Released 2.13.91.
......
......@@ -74,6 +74,8 @@ main (int argc, char *argv[])
static gchar *lookup_input = NULL;
static gchar *finger_input = NULL;
static gchar *whois_input = NULL;
GError *error = NULL;
GOptionEntry options[] = {
{ "info", 'i', 0, G_OPTION_ARG_STRING, &info_input,
N_("Load information for a network device"),
......@@ -116,7 +118,10 @@ main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE);
#endif
gtk_init_with_args (&argc, &argv,NULL,options,NULL,NULL);
if (!gtk_init_with_args (&argc, &argv, NULL, options, NULL, &error)) {
g_print ("%s\n\n", error->message);
return -1;
}
if (!g_file_test (dialog, G_FILE_TEST_EXISTS)) {
g_critical (_("The file %s doesn't exist, "
......
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