[gnome-boxes] shared-folder-popover: Select PUBLIC_SHARE by default
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] shared-folder-popover: Select PUBLIC_SHARE by default
- Date: Thu, 5 Apr 2018 13:02:20 +0000 (UTC)
commit 96ae9cad86ba7f0399f097f2d87a47e67396d7ab
Author: Felipe Borges <felipeborges gnome org>
Date: Thu Apr 5 14:58:17 2018 +0200
shared-folder-popover: Select PUBLIC_SHARE by default
The GtkFileChooserButton widget will show "None" if a path isn't
selected. This is unintuitive for users that don't recognize the
look and feel of the button.
src/shared-folder-popover.vala | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/shared-folder-popover.vala b/src/shared-folder-popover.vala
index d257b1d9..f1e095b8 100644
--- a/src/shared-folder-popover.vala
+++ b/src/shared-folder-popover.vala
@@ -12,6 +12,11 @@
public int target_position;
+ construct {
+ var default_path = Environment.get_user_special_dir (UserDirectory.PUBLIC_SHARE);
+ file_chooser_button.set_current_folder (default_path);
+ }
+
[GtkCallback]
public void on_cancel (Gtk.Button cancel_button) {
popdown ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]