[gnumeric] Compilation: remove the use of go_url_decode.



commit 113787637e808298a756cb36d218e75db4b99306
Author: Morten Welinder <terra gnome org>
Date:   Fri Mar 16 10:53:13 2012 -0400

    Compilation: remove the use of go_url_decode.
    
    Glib's g_uri_unescape_string does the same thing.

 src/dialogs/ChangeLog          |    6 ++++++
 src/dialogs/dialog-hyperlink.c |    5 +++--
 src/dialogs/dialog-quit.c      |    2 +-
 3 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 0e05e42..a4740fe 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-16  Morten Welinder  <terra gnome org>
+
+	* dialog-quit.c (url_renderer_func): Use g_uri_unescape_string,
+	not go_url_decode.
+	* dialog-hyperlink.c (dhl_set_target_email): Ditto.
+
 2012-03-10  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* dialog-search.c (dialog_search): only show the expression entry
diff --git a/src/dialogs/dialog-hyperlink.c b/src/dialogs/dialog-hyperlink.c
index d146027..fc4348a 100644
--- a/src/dialogs/dialog-hyperlink.c
+++ b/src/dialogs/dialog-hyperlink.c
@@ -229,13 +229,14 @@ dhl_set_target_email (HyperlinkState *state, const char* const target)
 
 	subject = strstr (cursor, "?subject=");
 	if (subject) {
-		guitext = go_url_decode (subject + strlen ("?subject="));
+		guitext = g_uri_unescape_string (subject + strlen ("?subject="),
+						 NULL);
 		gtk_entry_set_text (GTK_ENTRY (w2), guitext);
 		*subject = '\0';
 		g_free (guitext);
 	}
 
-	guitext = go_url_decode (cursor);
+	guitext = g_uri_unescape_string (cursor, NULL);
 
 	gtk_entry_set_text (GTK_ENTRY (w), guitext);
 
diff --git a/src/dialogs/dialog-quit.c b/src/dialogs/dialog-quit.c
index 243b011..9831ec1 100644
--- a/src/dialogs/dialog-quit.c
+++ b/src/dialogs/dialog-quit.c
@@ -75,7 +75,7 @@ url_renderer_func (GtkTreeViewColumn *tree_column,
 		shortname = g_filename_display_basename (uri);
 	}
 
-	duri = go_url_decode (uri);
+	duri = g_uri_unescape_string (uri, NULL);
 	longname = duri
 		? g_filename_display_name (duri)
 		: g_strdup (uri);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]