[gnome-builder] create-project: fix folder selection
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] create-project: fix folder selection
- Date: Fri, 22 Apr 2016 07:00:28 +0000 (UTC)
commit 2fb097f8cc6ace80efa2c93c352e9b88f6ed9b1a
Author: Akshaya Kakkilaya <akshaya kakkilaya gmail com>
Date: Fri Apr 22 12:10:20 2016 +0530
create-project: fix folder selection
https://bugzilla.gnome.org/show_bug.cgi?id=765412
plugins/create-project/gbp-create-project-widget.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/create-project/gbp-create-project-widget.c
b/plugins/create-project/gbp-create-project-widget.c
index eaffe96..aacd14c 100644
--- a/plugins/create-project/gbp-create-project-widget.c
+++ b/plugins/create-project/gbp-create-project-widget.c
@@ -453,12 +453,12 @@ gbp_create_project_widget_create_async (GbpCreateProjectWidget *self,
g_variant_ref_sink (g_variant_new_string (g_strdelimit (name, " ", '-'))));
child_name = gtk_entry_get_text (self->project_location_entry);
- location = gtk_file_chooser_get_current_folder (GTK_FILE_CHOOSER (self->project_location_button));
+ location = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (self->project_location_button));
if (!ide_str_empty0 (child_name))
path = g_build_filename (location, child_name, NULL);
else
- path = g_strdup (location);
+ path = g_steal_pointer (&location);
g_hash_table_insert (params,
g_strdup ("path"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]