From 6823f2cd04d84144d32caa9e32651c28254b2d56 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 4 Dec 2014 08:50:55 +0100 Subject: If glade file cannot be load, try locally --- bin/gui/control.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin/gui') diff --git a/bin/gui/control.c b/bin/gui/control.c index 5f4416e..16fb342 100644 --- a/bin/gui/control.c +++ b/bin/gui/control.c @@ -1363,7 +1363,12 @@ main (int argc, char *argv[]) builder = gtk_builder_new (); if (!gtk_builder_add_from_file (builder, CONTROL_GLADE_PATH, &error)) { - g_print ("Could not load UI file: %s\n", error->message); + g_warning ("Cannot load UI: `%s'. Trying in current working directory.", error->message); + g_error_free (error); + } + + if (!gtk_builder_add_from_file (builder, "control.glade", &error)) { + g_warning ("Cannot load UI: `%s'.", error->message); return 1; } -- cgit v1.2.3