[baobab] Show a message instead of failing silently in a few cases



commit d17c086a9e91f1d2460a73e99cd1fcbf2ebd5171
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Fri Jul 19 23:08:14 2013 +0200

    Show a message instead of failing silently in a few cases

 src/baobab-window.vala |    6 +++---
 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);
                     }
                 }
             });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]