[maemo-commits] [maemo-commits] r13198 - in projects/haf/trunk/hildon-home-webshortcut: . plugin

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Aug 15 14:38:20 EEST 2007
Author: lucasr
Date: 2007-08-15 14:38:18 +0300 (Wed, 15 Aug 2007)
New Revision: 13198

Modified:
   projects/haf/trunk/hildon-home-webshortcut/ChangeLog
   projects/haf/trunk/hildon-home-webshortcut/plugin/hhws-background.c
Log:
2007-08-15  Lucas Rocha  <lucas.rocha at nokia.com>

	* plugin/hhws-background.c: more safety tests in case it's not
	possible to retrieve image filename from gconf.


Modified: projects/haf/trunk/hildon-home-webshortcut/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-home-webshortcut/ChangeLog	2007-08-15 11:14:11 UTC (rev 13197)
+++ projects/haf/trunk/hildon-home-webshortcut/ChangeLog	2007-08-15 11:38:18 UTC (rev 13198)
@@ -1,3 +1,8 @@
+2007-08-15  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* plugin/hhws-background.c: more safety tests in case it's not
+	possible to retrieve image filename from gconf.
+
 2007-08-06  Johan Bilien  <johan.bilien at nokia.com>
 
 	* configure.ac: 1.9.5

Modified: projects/haf/trunk/hildon-home-webshortcut/plugin/hhws-background.c
===================================================================
--- projects/haf/trunk/hildon-home-webshortcut/plugin/hhws-background.c	2007-08-15 11:14:11 UTC (rev 13197)
+++ projects/haf/trunk/hildon-home-webshortcut/plugin/hhws-background.c	2007-08-15 11:38:18 UTC (rev 13198)
@@ -187,12 +187,12 @@
   filename = gconf_client_get_string (client,
                                       HHWS_GCONF_IMAGE_URI,
                                       &local_error);
-  if (local_error) goto error;
+  if (!filename || local_error) goto error;
 
   cache = gconf_client_get_string (client,
                                    HHWS_GCONF_IMAGE_CACHE,
                                    &local_error);
-  if (local_error) goto error;
+  if (!cache || local_error) goto error;
 
   g_object_set (background,
                 "filename", filename,


More information about the maemo-commits mailing list