[nautilus/wip/antoniof/new-list-view-without-expanders: 18/27] 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: 18/27] grid-cell: Fix cut "cut" style setting
- Date: Tue, 21 Jun 2022 18:55:19 +0000 (UTC)
commit 97666e4aa0ab1fda02d96f88bf71405e17cafdd3
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]