[gtk/columnview-resizing: 36/38] columnviewcolumn: Add a helper



commit 9075697d873d597fd29c6cdcb7659f8e8fdfc84a
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 20 23:01:55 2019 -0500

    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.

 gtk/gtkcolumnviewcolumn.c        | 6 ++++++
 gtk/gtkcolumnviewcolumnprivate.h | 1 +
 2 files changed, 7 insertions(+)
---
diff --git a/gtk/gtkcolumnviewcolumn.c b/gtk/gtkcolumnviewcolumn.c
index 89157b5236..6a09209648 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -941,3 +941,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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]