[gnome-builder] create-project: strip project name
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] create-project: strip project name
- Date: Mon, 4 Apr 2016 19:36:23 +0000 (UTC)
commit 4aa47f7aa1bae36ceb4df39c1dc55b48cdfd291e
Author: Akshaya Kakkilaya <akshaya kakkilaya gmail com>
Date: Sun Apr 3 20:08:11 2016 +0530
create-project: strip project name
https://bugzilla.gnome.org/show_bug.cgi?id=764546
plugins/create-project/gbp-create-project-widget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/create-project/gbp-create-project-widget.c
b/plugins/create-project/gbp-create-project-widget.c
index 7d08822..91cbba2 100644
--- a/plugins/create-project/gbp-create-project-widget.c
+++ b/plugins/create-project/gbp-create-project-widget.c
@@ -443,7 +443,7 @@ gbp_create_project_widget_create_async (GbpCreateProjectWidget *self,
(GDestroyNotify)g_variant_unref);
text = gtk_entry_get_text (self->project_name_entry);
- name = g_strdup (text);
+ name = g_strstrip (g_strdup (text));
g_hash_table_insert (params,
g_strdup ("name"),
g_variant_ref_sink (g_variant_new_string (g_strdelimit (name, " ", '-'))));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]