[maemo-commits] [maemo-commits] r16486 - projects/haf/trunk/hildon-thumbnail/daemon
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri Oct 24 15:24:42 EEST 2008
- Previous message: [maemo-commits] r16485 - in projects/haf/trunk/hildon-thumbnail: . daemon
- Next message: [maemo-commits] r16487 - projects/haf/trunk/hildon-thumbnail/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof Date: 2008-10-24 15:24:41 +0300 (Fri, 24 Oct 2008) New Revision: 16486 Modified: projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c Log: Modified: projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c =================================================================== --- projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c 2008-10-24 12:23:31 UTC (rev 16485) +++ projects/haf/trunk/hildon-thumbnail/daemon/thumbnailer.c 2008-10-24 12:24:41 UTC (rev 16486) @@ -461,24 +461,28 @@ gchar *from[4] = { NULL, NULL, NULL, NULL }; gchar *to[4] = { NULL, NULL, NULL, NULL }; guint z = 0; + GError *error = NULL; hildon_thumbnail_util_get_thumb_paths (urlss[i], &from[0], &from[1], &from[2], &to[0], &to[1], &to[2]); - for (z = 0; z < 3; z++) { + for (z = 0; z < 3 && !error; z++) { GFile *from_file, *to_file; from_file = g_file_new_for_path (from[z]); to_file = g_file_new_for_uri (to[z]); g_file_copy (from_file, to_file, 0, NULL, - NULL, NULL, NULL); + NULL, NULL, &error); g_object_unref (from_file); g_object_unref (to_file); g_free (from[z]); g_free (to[z]); } + + if (error) + g_error_free (error); } i++; }
- Previous message: [maemo-commits] r16485 - in projects/haf/trunk/hildon-thumbnail: . daemon
- Next message: [maemo-commits] r16487 - projects/haf/trunk/hildon-thumbnail/daemon
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]