summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-12-20 23:01:55 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-05-30 20:01:14 -0400
commitdcea6d6cda1e696f0114361309df3b1508a7e3fe (patch)
tree9f392cc53d0fbd54cd0de85f862a552df2df5337
parenta118267ab78f45eb727997c5bed334554c16af8e (diff)
downloadgtk+-dcea6d6cda1e696f0114361309df3b1508a7e3fe.tar.gz
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.
-rw-r--r--gtk/gtkcolumnviewcolumn.c6
-rw-r--r--gtk/gtkcolumnviewcolumnprivate.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkcolumnviewcolumn.c b/gtk/gtkcolumnviewcolumn.c
index e6ae819ed6..24c9adec2e 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -875,3 +875,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;
+}
diff --git a/gtk/gtkcolumnviewcolumnprivate.h b/gtk/gtkcolumnviewcolumnprivate.h
index fe46663e63..925343f998 100644
--- a/gtk/gtkcolumnviewcolumnprivate.h
+++ b/gtk/gtkcolumnviewcolumnprivate.h
@@ -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,