columnviewcell: Ignore ::activatable and ::selectable for cells

This is a row property, not a cell property.
This commit is contained in:
Benjamin Otte
2023-03-30 12:26:01 +02:00
parent c74ab7aaec
commit 170d49f067
2 changed files with 0 additions and 8 deletions

View File

@@ -139,8 +139,6 @@ gtk_column_view_cell_widget_setup_object (GtkListFactoryWidget *fw,
list_item->cell = self;
gtk_list_factory_widget_set_activatable (fw, list_item->activatable);
gtk_list_factory_widget_set_selectable (fw, list_item->selectable);
gtk_column_view_cell_widget_set_child (GTK_COLUMN_VIEW_CELL_WIDGET (self), list_item->child);
gtk_widget_set_focusable (GTK_WIDGET (self), list_item->focusable);
@@ -164,8 +162,6 @@ gtk_column_view_cell_widget_teardown_object (GtkListFactoryWidget *fw,
gtk_column_view_cell_widget_set_child (GTK_COLUMN_VIEW_CELL_WIDGET (self), NULL);
gtk_list_factory_widget_set_activatable (fw, FALSE);
gtk_list_factory_widget_set_selectable (fw, FALSE);
gtk_widget_set_focusable (GTK_WIDGET (self), FALSE);
gtk_list_item_do_notify (list_item,

View File

@@ -457,8 +457,6 @@ gtk_list_item_set_selectable (GtkListItem *self,
if (self->owner)
gtk_list_factory_widget_set_selectable (GTK_LIST_FACTORY_WIDGET (self->owner), selectable);
if (self->cell)
gtk_list_factory_widget_set_selectable (GTK_LIST_FACTORY_WIDGET (self->cell), selectable);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SELECTABLE]);
}
@@ -508,8 +506,6 @@ gtk_list_item_set_activatable (GtkListItem *self,
if (self->owner)
gtk_list_factory_widget_set_activatable (GTK_LIST_FACTORY_WIDGET (self->owner), activatable);
if (self->cell)
gtk_list_factory_widget_set_activatable (GTK_LIST_FACTORY_WIDGET (self->cell), activatable);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_ACTIVATABLE]);
}