[gtk/prop-list: 24/32] columnviewcolumn: Add a helper



commit 466a5cfa2678b0528bcc7c73a8545dab3c92cd28
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 6c80736066..9450111449 100644
--- a/gtk/gtkcolumnviewcolumn.c
+++ b/gtk/gtkcolumnviewcolumn.c
@@ -851,3 +851,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]