Set the "local-only" property on GtkFileChooser widgets to FALSE
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 7 Aug 2011 09:38:37 +0000 (11:38 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 13 Aug 2011 17:19:15 +0000 (19:19 +0200)
src/ui/gui/aggregate-dialog.c
src/ui/gui/psppire-data-window.c
src/ui/gui/psppire-output-window.c
src/ui/gui/psppire-syntax-window.c
src/ui/gui/psppire-window.c
src/ui/gui/text-data-import-dialog.c

index c06011da92fd19096d25dbac440c2efee0488c23..2ebb844ed5422273713dff074c04c445583b4649 100644 (file)
@@ -164,6 +164,7 @@ choose_filename (struct aggregate *fd)
                                                           GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                                                           GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
                                                           NULL);
+  g_object_set (dialog, "local-only", FALSE, NULL);
 
   gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE);
 
index e695310e0e17cfe2e6086035108deab43c5779ff..fe9f8df603251cd9e4938b4a6d6eac15a5776c89 100644 (file)
@@ -492,6 +492,7 @@ static void
 data_pick_filename (PsppireWindow *window)
 {
   PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (window);
+  GtkFileFilter *filter = gtk_file_filter_new ();
   GtkWidget *button_sys;
   GtkWidget *dialog =
     gtk_file_chooser_dialog_new (_("Save"),
@@ -501,7 +502,8 @@ data_pick_filename (PsppireWindow *window)
                                 GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
                                 NULL);
 
-  GtkFileFilter *filter = gtk_file_filter_new ();
+  g_object_set (dialog, "local-only", FALSE, NULL);
+
   gtk_file_filter_set_name (filter, _("System Files (*.sav)"));
   gtk_file_filter_add_pattern (filter, "*.sav");
   gtk_file_filter_add_pattern (filter, "*.SAV");
index cf65a2f9e6c518c7dbd7b6581a0808b10ea06c92..a29fcc6cd5bc23e8f1fe28ad1084ea34e30b226a 100644 (file)
@@ -586,6 +586,8 @@ psppire_output_window_export (PsppireOutputWindow *window)
                                         GTK_STOCK_SAVE,   GTK_RESPONSE_ACCEPT,
                                         NULL);
 
+  g_object_set (dialog, "local-only", FALSE, NULL);
+
   chooser = GTK_FILE_CHOOSER (dialog);
 
   list = create_file_type_list ();
index b117825f752f8e7e074ac2f179651733533cd2c9..47df52be82922ad83999ba2f251f715d263ab05f 100644 (file)
@@ -574,6 +574,8 @@ syntax_pick_filename (PsppireWindow *window)
                                 GTK_STOCK_SAVE,   GTK_RESPONSE_ACCEPT,
                                 NULL);
 
+  g_object_set (dialog, "local-only", FALSE, NULL);
+
   filter = gtk_file_filter_new ();
   gtk_file_filter_set_name (filter, _("Syntax Files (*.sps) "));
   gtk_file_filter_add_pattern (filter, "*.sps");
index 54ece05de51b7386573d0179b8bca49f6f73ab25..2b521970ceec0226bf4af930794679bf65a8abc4 100644 (file)
@@ -709,6 +709,7 @@ psppire_window_load (PsppireWindow *w, const gchar *file)
 GtkWidget *
 psppire_window_file_chooser_dialog (PsppireWindow *toplevel)
 {
+  GtkFileFilter *filter = gtk_file_filter_new ();
   GtkWidget *dialog =
     gtk_file_chooser_dialog_new (_("Open"),
                                 GTK_WINDOW (toplevel),
@@ -717,9 +718,8 @@ psppire_window_file_chooser_dialog (PsppireWindow *toplevel)
                                 GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                                 NULL);
 
-  GtkFileFilter *filter;
+  g_object_set (dialog, "local-only", FALSE, NULL);
 
-  filter = gtk_file_filter_new ();
   gtk_file_filter_set_name (filter, _("Data and Syntax Files"));
   gtk_file_filter_add_pattern (filter, "*.sav");
   gtk_file_filter_add_pattern (filter, "*.SAV");
index 38d23fe083abe180b415dc0152c0c6916548e5d9..09daa0e6b39a7ea8a033dd5d1b66bdd2e444585f 100644 (file)
@@ -525,16 +525,17 @@ destroy_file (struct import_assistant *ia)
 static char *
 choose_file (GtkWindow *parent_window)
 {
-  GtkWidget *dialog;
   char *file_name;
 
-  dialog = gtk_file_chooser_dialog_new (_("Import Delimited Text Data"),
+  GtkWidget *dialog = gtk_file_chooser_dialog_new (_("Import Delimited Text Data"),
                                         parent_window,
                                         GTK_FILE_CHOOSER_ACTION_OPEN,
                                         GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                                         GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                                         NULL);
 
+  g_object_set (dialog, "local-only", FALSE, NULL);
+
   switch (gtk_dialog_run (GTK_DIALOG (dialog)))
     {
     case GTK_RESPONSE_ACCEPT: