[maemo-commits] [maemo-commits] r13030 - in projects/haf/trunk/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Aug 6 16:37:19 EEST 2007
Author: jobi
Date: 2007-08-06 16:37:14 +0300 (Mon, 06 Aug 2007)
New Revision: 13030

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hd-home-window.c
Log:

2007-08-06  Johan Bilien  <johan.bilien at nokia.com>

	* src/hd-home-window.c:
	- handle some more errors from GdkPixbugLoader as corrupted images



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-08-06 13:31:09 UTC (rev 13029)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-08-06 13:37:14 UTC (rev 13030)
@@ -1,5 +1,10 @@
 2007-08-06  Johan Bilien  <johan.bilien at nokia.com>
 
+	* src/hd-home-window.c:
+	- handle some more errors from GdkPixbugLoader as corrupted images
+
+2007-08-06  Johan Bilien  <johan.bilien at nokia.com>
+
 	* src/hd-home-background.c:
 	- empty background do not require caching
 

Modified: projects/haf/trunk/hildon-desktop/src/hd-home-window.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hd-home-window.c	2007-08-06 13:31:09 UTC (rev 13029)
+++ projects/haf/trunk/hildon-desktop/src/hd-home-window.c	2007-08-06 13:37:14 UTC (rev 13030)
@@ -681,6 +681,12 @@
       else if ((dbus_g_error_has_name (error,
                                        "org.freedesktop.DBus.GLib.UnmappedError.GdkPixbufErrorQuark.Code1")))
         text = HH_LOW_MEMORY_TEXT;
+      else if ((dbus_g_error_has_name (error,
+                                       "org.freedesktop.DBus.GLib.UnmappedError.GdkPixbufErrorQuark.Code3")))
+        text = HH_FILE_CORRUPTED_TEXT;
+      else if ((dbus_g_error_has_name (error,
+                                       "org.freedesktop.DBus.GLib.UnmappedError.GdkPixbufErrorQuark.Code5")))
+        text = HH_FILE_CORRUPTED_TEXT;
 
       if (text)
         hd_home_window_show_information_note (window, text);


More information about the maemo-commits mailing list