[gnome-builder] workbench: allow opening of remote files from file chooser



commit 3391286b8ca331f57be9de03fc7847e5f70857b8
Author: Christian Hergert <christian hergert me>
Date:   Thu Apr 28 16:01:31 2016 -0700

    workbench: allow opening of remote files from file chooser
    
    This should have always worked, but due to breakage in IdeUri with handling
    remove URIs, we would fail to determine mime-types, and therefore the files
    would not open.
    
    Now that is fixed, we can allow opening remote files.

 libide/ide-workbench-actions.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-workbench-actions.c b/libide/ide-workbench-actions.c
index 26cd76d..a92d498 100644
--- a/libide/ide-workbench-actions.c
+++ b/libide/ide-workbench-actions.c
@@ -68,6 +68,8 @@ ide_workbench_actions_open_with_dialog (GSimpleAction *action,
                                         _("Open"), GTK_RESPONSE_OK,
                                         NULL);
 
+  gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog), FALSE);
+
   button = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
   gtk_style_context_add_class (gtk_widget_get_style_context (button),
                                GTK_STYLE_CLASS_SUGGESTED_ACTION);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]