[gtk/prop-list: 1/96] filterlistmodel: Remove pre-filter remnants
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/prop-list: 1/96] filterlistmodel: Remove pre-filter remnants
- Date: Tue, 24 Dec 2019 20:37:00 +0000 (UTC)
commit 51e2a51dfd0bb876b5226d2a1f2027230b556dee
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 24 12:52:31 2019 -0500
filterlistmodel: Remove pre-filter remnants
We are not using the filter func typdef anymore.
gtk/gtkfilterlistmodel.h | 14 --------------
testsuite/gtk/filterlistmodel.c | 6 +++---
2 files changed, 3 insertions(+), 17 deletions(-)
---
diff --git a/gtk/gtkfilterlistmodel.h b/gtk/gtkfilterlistmodel.h
index 17e295e613..fcb8dfab5c 100644
--- a/gtk/gtkfilterlistmodel.h
+++ b/gtk/gtkfilterlistmodel.h
@@ -27,7 +27,6 @@
#include <gio/gio.h>
#include <gtk/gtkfilter.h>
-#include <gtk/gtkwidget.h>
G_BEGIN_DECLS
@@ -37,19 +36,6 @@ G_BEGIN_DECLS
GDK_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (GtkFilterListModel, gtk_filter_list_model, GTK, FILTER_LIST_MODEL, GObject)
-/**
- * GtkFilterListModelFilterFunc:
- * @item: (type GObject): The item that may be filtered
- * @user_data: user data
- *
- * User function that is called to determine if the @item of the original model should be visible.
- * If it should be visible, this function must return %TRUE. If the model should filter out the
- * @item, %FALSE must be returned.
- *
- * Returns: %TRUE to keep the item around
- */
-typedef gboolean (* GtkFilterListModelFilterFunc) (gpointer item, gpointer user_data);
-
GDK_AVAILABLE_IN_ALL
GtkFilterListModel * gtk_filter_list_model_new (GListModel *model,
GtkFilter *filter);
diff --git a/testsuite/gtk/filterlistmodel.c b/testsuite/gtk/filterlistmodel.c
index c9a02e19cf..0e29cf501c 100644
--- a/testsuite/gtk/filterlistmodel.c
+++ b/testsuite/gtk/filterlistmodel.c
@@ -150,9 +150,9 @@ free_changes (gpointer data)
}
static GtkFilterListModel *
-new_model (guint size,
- GtkFilterListModelFilterFunc filter_func,
- gpointer data)
+new_model (guint size,
+ GtkCustomFilterFunc filter_func,
+ gpointer data)
{
GtkFilterListModel *result;
GtkFilter *filter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]