[gnome-control-center] sharing: Use the selected URI from the file chooser
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sharing: Use the selected URI from the file chooser
- Date: Thu, 26 Jun 2014 14:25:25 +0000 (UTC)
commit c2ad24e8044a2cb9a4de5175c3e0bb44a5f1dc3e
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Jun 26 16:08:12 2014 +0200
sharing: Use the selected URI from the file chooser
Using the current folder is counter-intuitive. The chooser already
only allows users to select folders.
panels/sharing/cc-sharing-panel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c
index 255a6c8..c7fb884 100644
--- a/panels/sharing/cc-sharing-panel.c
+++ b/panels/sharing/cc-sharing-panel.c
@@ -498,7 +498,7 @@ cc_sharing_panel_add_folder (GtkListBox *box,
box = GTK_LIST_BOX (WID ("shared-folders-listbox"));
rows = gtk_container_get_children (GTK_CONTAINER (box));
- folder = gtk_file_chooser_get_current_folder (GTK_FILE_CHOOSER (dialog));
+ folder = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (dialog));
if (!folder || g_str_equal (folder, ""))
goto bail;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]