[nautilus] location-entry: Use g_strstrip()
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] location-entry: Use g_strstrip()
- Date: Sat, 13 Feb 2021 00:11:54 +0000 (UTC)
commit 4fad42b7b478946ba9d0d72107b6970468827647
Author: James Westman <james jwestman net>
Date: Fri Feb 12 16:48:21 2021 -0600
location-entry: Use g_strstrip()
Replace g_strchomp and g_strchug with g_strstrip, for simplicity.
src/nautilus-location-entry.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-location-entry.c b/src/nautilus-location-entry.c
index 83c3a6fd9..7d14a9dc3 100644
--- a/src/nautilus-location-entry.c
+++ b/src/nautilus-location-entry.c
@@ -382,8 +382,8 @@ update_completions_store (gpointer callback_data)
user_location = gtk_editable_get_chars (editable, 0, -1);
}
- user_location = g_strchug (user_location);
- user_location = g_strchomp (user_location);
+ g_strstrip (user_location);
+
priv->idle_id = 0;
uri_scheme = g_uri_parse_scheme (user_location);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]