patch to build eds against latest glib
Larry Reaves <[email protected]> Fri, 19 Jun 2009 01:56:18 -0400
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <1245390978.7645.17.camel@larry-dell> |
--=-H9P91Ge7wiAsBUUQxfLU Content-Type: text/plain Content-Transfer-Encoding: 7bit There was a glib commit (git.gnome.org/glib 4c791f49e58688d1b8948d083c1780cab9d26e93) on the 18th that adds reference counting to GMappedFile, and deprecates g_mapped_file_free, replacing it with g_mapped_file_unref. The attached patch replaces each call to g_mapped_file_free with g_mapped_file unref. Of course, eds won't build with this patch without the very latest glib ;). -Larry Reaves --=-H9P91Ge7wiAsBUUQxfLU Content-Disposition: attachment; filename*0=0001-Update-g_mapped_file_free-calls-to-g_mapped_file_unr.pat; filename*1=ch Content-Type: text/x-patch; name="0001-Update-g_mapped_file_free-calls-to-g_mapped_file_unr.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit From d7e0f4a16757a2e75df447fa98a5a8ff5af51cfe Mon Sep 17 00:00:00 2001 From: Larry Reaves <[email protected]> Date: Fri, 19 Jun 2009 01:44:49 -0400 Subject: [PATCH] Update g_mapped_file_free calls to g_mapped_file_unref to keep up with glib --- calendar/backends/file/e-cal-backend-file.c | 2 +- calendar/backends/google/e-cal-backend-google.c | 2 +- .../backends/groupwise/e-cal-backend-groupwise.c | 2 +- libedataserver/e-xml-utils.c | 2 +- libedataserver/md5-utils.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/calendar/backends/file/e-cal-backend-file.c b/calendar/backends/file/e-cal-backend-file.c index 29284f7..4ac3572 100644 --- a/calendar/backends/file/e-cal-backend-file.c +++ b/calendar/backends/file/e-cal-backend-file.c @@ -2510,7 +2510,7 @@ fetch_attachments (ECalBackendSync *backend, ECalComponent *comp) g_message ("DEBUG: attachment write failed.\n"); } - g_mapped_file_free (mapped_file); + g_mapped_file_unref (mapped_file); if (fd != -1) close (fd); dest_url = g_filename_to_uri (dest_file, NULL, NULL); diff --git a/calendar/backends/google/e-cal-backend-google.c b/calendar/backends/google/e-cal-backend-google.c index 845d6d3..1d8624a 100644 --- a/calendar/backends/google/e-cal-backend-google.c +++ b/calendar/backends/google/e-cal-backend-google.c @@ -523,7 +523,7 @@ fetch_attachments (ECalBackendGoogle *cbgo, ECalComponent *comp) g_message ("DEBUG: attachment write failed.\n"); } - g_mapped_file_free (mapped_file); + g_mapped_file_unref (mapped_file); if (fd != -1) close (fd); dest_url = g_filename_to_uri (dest_file, NULL, NULL); diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise.c b/calendar/backends/groupwise/e-cal-backend-groupwise.c index aec0661..a2c46da 100644 --- a/calendar/backends/groupwise/e-cal-backend-groupwise.c +++ b/calendar/backends/groupwise/e-cal-backend-groupwise.c @@ -2449,7 +2449,7 @@ fetch_attachments (ECalBackendGroupwise *cbgw, ECalComponent *comp) g_message ("DEBUG: attachment write failed.\n"); } - g_mapped_file_free (mapped_file); + g_mapped_file_unref (mapped_file); if (fd != -1) close (fd); dest_url = g_filename_to_uri (dest_file, NULL, NULL); diff --git a/libedataserver/e-xml-utils.c b/libedataserver/e-xml-utils.c index 8901ce3..525627f 100644 --- a/libedataserver/e-xml-utils.c +++ b/libedataserver/e-xml-utils.c @@ -50,7 +50,7 @@ e_xml_parse_file (const gchar *filename) if (mapped_file) { result = xmlParseMemory (g_mapped_file_get_contents (mapped_file), g_mapped_file_get_length (mapped_file)); - g_mapped_file_free (mapped_file); + g_mapped_file_unref (mapped_file); } return result; } diff --git a/libedataserver/md5-utils.c b/libedataserver/md5-utils.c index 4ef3780..fee9e7b 100644 --- a/libedataserver/md5-utils.c +++ b/libedataserver/md5-utils.c @@ -362,5 +362,5 @@ md5_get_digest_from_file (const gchar *filename, guchar digest[16]) md5_get_digest (contents, length, digest); - g_mapped_file_free (mapped_file); + g_mapped_file_unref (mapped_file); } -- 1.6.0.4 --=-H9P91Ge7wiAsBUUQxfLU Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches --=-H9P91Ge7wiAsBUUQxfLU--