summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Facchini <stefano.facchini@gmail.com>2013-07-19 23:08:14 +0200
committerStefano Facchini <stefano.facchini@gmail.com>2013-07-19 23:10:11 +0200
commitd17c086a9e91f1d2460a73e99cd1fcbf2ebd5171 (patch)
tree7cf3778993f886bf9ac9dae8fe1c075bed967ee6
parent110f41ce072f06080faaa7922ade788548d37e32 (diff)
downloadbaobab-d17c086a9e91f1d2460a73e99cd1fcbf2ebd5171.tar.gz
Show a message instead of failing silently in a few cases
-rw-r--r--src/baobab-window.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index a616816..adc9de9 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -306,7 +306,7 @@ namespace Baobab {
try {
Gtk.show_uri (get_screen (), "help:baobab", Gtk.get_current_event_time ());
} catch (Error e) {
- warning ("Failed to show help: %s", e.message);
+ message (_("Failed to show help"), e.message, Gtk.MessageType.WARNING);
}
}
@@ -416,7 +416,7 @@ namespace Baobab {
files.append (file);
appinfo.launch(files, null);
} catch (Error e) {
- warning ("Failed open file with application: %s", e.message);
+ message (_("Failed to open file"), e.message, Gtk.MessageType.ERROR);
}
}
});
@@ -444,7 +444,7 @@ namespace Baobab {
file.trash ();
active_location.scanner.remove (ref iter);
} catch (Error e) {
- warning ("Failed to move file to the trash: %s", e.message);
+ message (_("Failed to move file to the trash"), e.message, Gtk.MessageType.ERROR);
}
}
});