[nautilus/wip/antoniof/new-list-view-without-expanders: 4/13] grid-cell: Fix cut "cut" style setting




commit 3643f160ea59ccfabacbd1295f5c970d3ec2ca07
Author: António Fernandes <antoniof gnome org>
Date:   Tue Jun 14 19:51:51 2022 +0100

    grid-cell: Fix cut "cut" style setting
    
    We've been fetching the property from the wrong object.

 src/nautilus-grid-cell.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-grid-cell.c b/src/nautilus-grid-cell.c
index b1afcb504..3b6d5d2e5 100644
--- a/src/nautilus-grid-cell.c
+++ b/src/nautilus-grid-cell.c
@@ -132,7 +132,9 @@ on_item_is_cut_changed (NautilusGridCell *self)
 {
     gboolean is_cut;
 
-    g_object_get (self, "is-cut", &is_cut, NULL);
+    g_object_get (nautilus_view_cell_get_item (NAUTILUS_VIEW_CELL (self)),
+                  "is-cut", &is_cut,
+                  NULL);
     if (is_cut)
     {
         gtk_widget_add_css_class (self->icon, "cut");


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