Mask G_FILE_TYPE_SHORTCUT as a directory (#561494)

2008-12-15  Tomas Bzatek  <tbzatek@redhat.com> 

        * gtk/gtkfilechooserdefault.c: (list_row_activated):
        * gtk/gtkfilesystem.c: (_gtk_file_info_consider_as_directory):
        Mask G_FILE_TYPE_SHORTCUT as a directory (#561494)


svn path=/trunk/; revision=21906
This commit is contained in:
Tomas Bzatek 2008-12-15 16:12:09 +00:00 committed by Tomas Bzatek
parent 95b5ec01f7
commit d1a0239a18
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-12-15 Tomas Bzatek <tbzatek@redhat.com>
* gtk/gtkfilechooserdefault.c: (list_row_activated):
* gtk/gtkfilesystem.c: (_gtk_file_info_consider_as_directory):
Mask G_FILE_TYPE_SHORTCUT as a directory (#561494)
2008-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (update_current_folder_get_info_cb):

View File

@ -10718,7 +10718,8 @@ list_row_activated (GtkTreeView *tree_view,
const gchar *target_uri;
file = _gtk_file_system_model_get_file (impl->browse_files_model, &child_iter);
if (g_file_info_get_file_type (info) == G_FILE_TYPE_MOUNTABLE)
if (g_file_info_get_file_type (info) == G_FILE_TYPE_MOUNTABLE ||
g_file_info_get_file_type (info) == G_FILE_TYPE_SHORTCUT)
{
target_uri = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_TARGET_URI);
if (target_uri)

View File

@ -1803,6 +1803,7 @@ _gtk_file_info_consider_as_directory (GFileInfo *info)
GFileType type = g_file_info_get_file_type (info);
return (type == G_FILE_TYPE_DIRECTORY ||
type == G_FILE_TYPE_MOUNTABLE);
type == G_FILE_TYPE_MOUNTABLE ||
type == G_FILE_TYPE_SHORTCUT);
}