columnviewcolumn: Add a helper

We need to check whether clicks are in the headers
of columns, so let the column view get at the the
header widget.
This commit is contained in:
Matthias Clasen
2019-12-20 23:01:55 -05:00
parent 4a659c169d
commit 9d0904a445
2 changed files with 7 additions and 0 deletions

View File

@@ -876,3 +876,9 @@ gtk_column_view_column_get_fixed_width (GtkColumnViewColumn *self)
return self->fixed_width;
}
GtkWidget *
gtk_column_view_column_get_header (GtkColumnViewColumn *self)
{
return self->header;
}

View File

@@ -33,6 +33,7 @@ void gtk_column_view_column_add_cell (GtkColu
void gtk_column_view_column_remove_cell (GtkColumnViewColumn *self,
GtkColumnViewCell *cell);
GtkColumnViewCell * gtk_column_view_column_get_first_cell (GtkColumnViewColumn *self);
GtkWidget * gtk_column_view_column_get_header (GtkColumnViewColumn *self);
void gtk_column_view_column_queue_resize (GtkColumnViewColumn *self);
void gtk_column_view_column_measure (GtkColumnViewColumn *self,