[gnome-clocks/wip/cityimages] Do not show a warning message, when image files are not found
- From: Evgeny Bobkin <ebobkin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/wip/cityimages] Do not show a warning message, when image files are not found
- Date: Fri, 13 Sep 2013 14:19:50 +0000 (UTC)
commit 87543cce210a537170bc9c010771f92e3a098cb4
Author: Evgeny Bobkin <evgen ibqn gmail com>
Date: Fri Sep 13 16:18:40 2013 +0200
Do not show a warning message, when image files are not found
src/providers.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/providers.vala b/src/providers.vala
index 29ae6ae..4a3021b 100644
--- a/src/providers.vala
+++ b/src/providers.vala
@@ -84,8 +84,9 @@ public class LocalImageProvider : GLib.Object, ImageProvider {
var path = GLib.Path.build_path (GLib.Path.DIR_SEPARATOR_S, folder_path, name + ".jpg");
image = new Gdk.Pixbuf.from_file (path);
- } catch (Error e) {
- warning ("Loading image file: %s", e.message);
+ } catch (Error e) {
+ // warning ("Loading image file: %s", e.message);
+ image = null;
}
return image;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]