forked from AuroraMiddleware/gtk
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:
parent
95b5ec01f7
commit
d1a0239a18
@ -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):
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user