X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkfilechooserdefault.c;h=99c4200abdf2a7d3fc24bdeab151e63d3fa39f77;hb=e09957a47da9425cc26d1b33cb4e9cc3e92e9ac7;hp=8f0b278903b88ff60a69c97974e2a763eb3ddda1;hpb=cf216d780cb2c889a3bcb5faa825fc1b21af8896;p=~andy%2Fgtk diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 8f0b27890..99c4200ab 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -1854,7 +1854,7 @@ shortcuts_append_bookmarks (GtkFileChooserDefault *impl, file = bookmarks->data; - if (impl->local_only && _gtk_file_is_path_not_local (file)) + if (impl->local_only && !_gtk_file_has_native_path (file)) continue; if (shortcut_find_position (impl, file) != -1) @@ -1976,16 +1976,16 @@ shortcuts_add_volumes (GtkFileChooserDefault *impl) if (_gtk_file_system_volume_is_mounted (volume)) { GFile *base_file; - gboolean base_is_not_local = FALSE; + gboolean base_has_native_path = FALSE; base_file = _gtk_file_system_volume_get_root (volume); if (base_file != NULL) { - base_is_not_local = _gtk_file_is_path_not_local (base_file); + base_has_native_path = _gtk_file_has_native_path (base_file); g_object_unref (base_file); } - if (base_is_not_local) + if (!base_has_native_path) continue; } } @@ -5159,7 +5159,7 @@ set_local_only (GtkFileChooserDefault *impl, } if (local_only && impl->current_folder && - !g_file_is_native (impl->current_folder)) + !_gtk_file_has_native_path (impl->current_folder)) { /* If we are pointing to a non-local folder, make an effort to change * back to a local folder, but it's really up to the app to not cause @@ -7338,7 +7338,7 @@ gtk_file_chooser_default_update_current_folder (GtkFileChooser *chooser, operation_mode_set (impl, OPERATION_MODE_BROWSE); - if (impl->local_only && _gtk_file_is_path_not_local (file)) + if (impl->local_only && !_gtk_file_has_native_path (file)) { g_set_error_literal (error, GTK_FILE_CHOOSER_ERROR,