summaryrefslogtreecommitdiff
path: root/gtk/gtklistitemfactoryprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-11-02 18:56:36 +0100
committerMatthias Clasen <mclasen@redhat.com>2020-05-30 19:26:46 -0400
commitb33c56819b312aa61fc21fca566e1859c822cedf (patch)
treef2d06a00669858b4d5903e7026969481ba2e8469 /gtk/gtklistitemfactoryprivate.h
parent30f09ea10bcd114451e5435fdc73eacd85176a93 (diff)
downloadgtk+-b33c56819b312aa61fc21fca566e1859c822cedf.tar.gz
listitemfactory: Reorganize vfuncs
Instead of bind/rebind/update/unbind, we now just have update, and the factories get to interpret that in the way they want.
Diffstat (limited to 'gtk/gtklistitemfactoryprivate.h')
-rw-r--r--gtk/gtklistitemfactoryprivate.h32
1 files changed, 4 insertions, 28 deletions
diff --git a/gtk/gtklistitemfactoryprivate.h b/gtk/gtklistitemfactoryprivate.h
index d948db5ede..4cb49e8821 100644
--- a/gtk/gtklistitemfactoryprivate.h
+++ b/gtk/gtklistitemfactoryprivate.h
@@ -43,26 +43,13 @@ struct _GtkListItemFactoryClass
void (* teardown) (GtkListItemFactory *self,
GtkListItem *list_item);
- /* bind @list_item to the given @item, which is in @position and @selected state */
- void (* bind) (GtkListItemFactory *self,
- GtkListItem *list_item,
- guint position,
- gpointer item,
- gboolean selected);
- /* unbind the current item and bind a new one */
- void (* rebind) (GtkListItemFactory *self,
- GtkListItem *list_item,
- guint position,
- gpointer item,
- gboolean selected);
- /* like GtkListItemFactoryClass::rebind(), but the item didn't change */
+ /* Update properties on @list_item to the given @item, which is in @position and @selected state.
+ * One or more of those properties might be unchanged. */
void (* update) (GtkListItemFactory *self,
GtkListItem *list_item,
guint position,
+ gpointer item,
gboolean selected);
- /* undo the effects of GtkListItemFactoryClass::bind() */
- void (* unbind) (GtkListItemFactory *self,
- GtkListItem *list_item);
};
void gtk_list_item_factory_setup (GtkListItemFactory *self,
@@ -70,22 +57,11 @@ void gtk_list_item_factory_setup (GtkListItemFact
void gtk_list_item_factory_teardown (GtkListItemFactory *self,
GtkListItem *list_item);
-void gtk_list_item_factory_bind (GtkListItemFactory *self,
- GtkListItem *list_item,
- guint position,
- gpointer item,
- gboolean selected);
-void gtk_list_item_factory_rebind (GtkListItemFactory *self,
- GtkListItem *list_item,
- guint position,
- gpointer item,
- gboolean selected);
void gtk_list_item_factory_update (GtkListItemFactory *self,
GtkListItem *list_item,
guint position,
+ gpointer item,
gboolean selected);
-void gtk_list_item_factory_unbind (GtkListItemFactory *self,
- GtkListItem *list_item);
G_END_DECLS