[nautilus/wip/antoniof/new-list-view-without-expanders: 4/13] grid-cell: Fix cut "cut" style setting
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/new-list-view-without-expanders: 4/13] grid-cell: Fix cut "cut" style setting
- Date: Thu, 16 Jun 2022 12:02:24 +0000 (UTC)
commit 8935d105b1840ebcc245b62a7dea3f2414a04158
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]