[gnome-games] Maemo build fix
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] Maemo build fix
- Date: Fri, 1 May 2009 10:12:55 -0400 (EDT)
commit 16d5432557777d9d332031a98f9c368638232d43
Author: Christian Persch <chpe gnome org>
Date: Fri May 1 15:23:31 2009 +0200
Maemo build fix
g_uri_escape_string is only available on glib >= 2.16.
---
aisleriot/sol.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/aisleriot/sol.c b/aisleriot/sol.c
index 5ac6233..4ce5387 100644
--- a/aisleriot/sol.c
+++ b/aisleriot/sol.c
@@ -138,7 +138,12 @@ about_email_hook (GtkAboutDialog *about,
{
char *escaped, *uri;
+#if GLIB_CHECK_VERSION (2, 16, 0)
escaped = g_uri_escape_string (email_address, NULL, FALSE);
+#else
+ /* Not really correct, but the best we can do */
+ escaped = g_strdup (email_address);
+#endif
uri = g_strdup_printf ("mailto:%s", escaped);
g_free (escaped);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]