[gtk+/filesystemmodel: 28/28] fix a bug where we could use an empty thumbnail
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/filesystemmodel: 28/28] fix a bug where we could use an empty thumbnail
- Date: Tue, 23 Jun 2009 16:19:12 -0400 (EDT)
commit 7240c0d90f1ba59683356cf8b3094a21f4cf58ef
Author: Benjamin Otte <otte gnome org>
Date: Tue Jun 23 12:43:18 2009 +0200
fix a bug where we could use an empty thumbnail
gtk/gtkfilechooserdefault.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 3d5c60e..d5e891a 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -6794,8 +6794,7 @@ file_system_model_set (GtkFileSystemModel *model,
case MODEL_COL_PIXBUF:
if (info)
{
- if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_ICON) ||
- g_file_info_has_attribute (info, "filechooser::queried"))
+ if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_ICON))
{
g_value_take_object (value, _gtk_file_info_render_icon (info, GTK_WIDGET (impl), impl->icon_size));
}
@@ -6805,7 +6804,8 @@ file_system_model_set (GtkFileSystemModel *model,
GtkTreePath *path, *start, *end;
GtkTreeIter iter;
- if (impl->browse_files_tree_view == NULL)
+ if (impl->browse_files_tree_view == NULL ||
+ g_file_info_has_attribute (info, "filechooser::queried"))
return FALSE;
tree_model = gtk_tree_view_get_model (GTK_TREE_VIEW (impl->browse_files_tree_view));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]