diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index ebb1032..99391b5 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -2917,7 +2917,7 @@ thunar_file_get_icon_name (const ThunarFile *file, } else if (G_IS_FILE_ICON (icon)) { - icon_file = g_file_icon_get_file (G_FILE_ICON (icon)); + g_object_get (icon, "file", &icon_file, NULL); icon_name = g_file_get_path (icon_file); g_object_unref (icon_file); }