[gtk/columnview-resizing: 2/5] columnview: Add a helper
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/columnview-resizing: 2/5] columnview: Add a helper
- Date: Mon, 1 Jun 2020 12:11:58 +0000 (UTC)
commit a2d6f1f0cbeaa8fda9bddd52e45179090b4d66ba
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 18 12:51:15 2019 -0500
columnview: Add a helper
The column code needs to get access to the
listitem widgets that are children of the listview,
so add a getter.
gtk/gtkcolumnview.c | 6 ++++++
gtk/gtkcolumnviewprivate.h | 2 ++
2 files changed, 8 insertions(+)
---
diff --git a/gtk/gtkcolumnview.c b/gtk/gtkcolumnview.c
index 84a85a4aa5..d16cf293ac 100644
--- a/gtk/gtkcolumnview.c
+++ b/gtk/gtkcolumnview.c
@@ -826,6 +826,12 @@ gtk_column_view_get_header_widget (GtkColumnView *self)
return GTK_LIST_ITEM_WIDGET (self->header);
}
+GtkListView *
+gtk_column_view_get_list_view (GtkColumnView *self)
+{
+ return GTK_LIST_VIEW (self->listview);
+}
+
/**
* gtk_column_view_get_sorter:
* @self: a #GtkColumnView
diff --git a/gtk/gtkcolumnviewprivate.h b/gtk/gtkcolumnviewprivate.h
index 0d5cbbeed6..8343c26144 100644
--- a/gtk/gtkcolumnviewprivate.h
+++ b/gtk/gtkcolumnviewprivate.h
@@ -21,11 +21,13 @@
#define __GTK_COLUMN_VIEW_PRIVATE_H__
#include "gtk/gtkcolumnview.h"
+#include "gtk/gtklistview.h"
#include "gtk/gtkcolumnviewsorterprivate.h"
#include "gtk/gtklistitemwidgetprivate.h"
GtkListItemWidget * gtk_column_view_get_header_widget (GtkColumnView *self);
+GtkListView * gtk_column_view_get_list_view (GtkColumnView *self);
void gtk_column_view_measure_across (GtkColumnView *self,
int *minimum,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]