summaryrefslogtreecommitdiffstats
path: root/bin/gui/control.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-12-04 08:50:55 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-12-04 08:50:55 +0100
commit6823f2cd04d84144d32caa9e32651c28254b2d56 (patch)
treebe10fcb723ebede82a68506459658ab964936cb3 /bin/gui/control.c
parent321d465a5d787674a0e9a3553fb16b494a6f2dd5 (diff)
downloaduca-6823f2cd04d84144d32caa9e32651c28254b2d56.tar.gz
uca-6823f2cd04d84144d32caa9e32651c28254b2d56.tar.bz2
uca-6823f2cd04d84144d32caa9e32651c28254b2d56.tar.xz
uca-6823f2cd04d84144d32caa9e32651c28254b2d56.zip
If glade file cannot be load, try locally
Diffstat (limited to 'bin/gui/control.c')
-rw-r--r--bin/gui/control.c7
1 files changed, 6 insertions, 1 deletions
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;
}