[gtk/gbsneto/filechooser-column-view: 44/47] fixup! filesystemmodel: Always set standard::file attribute




commit 35e6ac936d04b448c391bd35b060003ee60b84c7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Oct 10 10:58:26 2022 -0300

    fixup! filesystemmodel: Always set standard::file attribute

 gtk/gtkfilechooserentry.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index 2c417614ff..8cc7a56ac0 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -209,8 +209,7 @@ match_func (GtkEntryCompletion *compl,
       if (g_file_info_get_file_type (info) != G_FILE_TYPE_REGULAR)
         return TRUE;
 
-      if (!g_file_info_has_attribute (info, "standard::file"))
-        g_file_info_set_attribute_object (info, "standard::file", G_OBJECT (file));
+      g_assert (g_file_info_has_attribute (info, "standard::file"));
 
       return gtk_filter_match (GTK_FILTER (chooser_entry->current_filter), info);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]