summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2008-12-15 16:12:09 +0000
committerTomas Bzatek <tbzatek@src.gnome.org>2008-12-15 16:12:09 +0000
commitd1a0239a1882075af92071550cec6aa40e01fb75 (patch)
tree5c85c85c9eb01afec935e70c1136a7bf692cbde4 /gtk
parent95b5ec01f7c1d6bae34a23213d1347a2a8956d2e (diff)
downloadgtk+-d1a0239a1882075af92071550cec6aa40e01fb75.tar.gz
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
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkfilechooserdefault.c3
-rw-r--r--gtk/gtkfilesystem.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index e7910ad08f..55c8470d8a 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -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)
diff --git a/gtk/gtkfilesystem.c b/gtk/gtkfilesystem.c
index f4b78d4d54..549671da5a 100644
--- a/gtk/gtkfilesystem.c
+++ b/gtk/gtkfilesystem.c
@@ -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);
}