[libdazzle/libdazzle-3-28] vapi: expose Dzl.StackList.push in the Vala API
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle/libdazzle-3-28] vapi: expose Dzl.StackList.push in the Vala API
- Date: Tue, 20 Mar 2018 20:23:58 +0000 (UTC)
commit 3dd1622fe85e8d4549d5093e1892301ebf7f1c0d
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Mar 20 19:19:28 2018 +0100
vapi: expose Dzl.StackList.push in the Vala API
src/Dazzle-1.0.metadata | 6 ++++++
src/widgets/dzl-stack-list.h | 10 ++++++++++
2 files changed, 16 insertions(+)
---
diff --git a/src/Dazzle-1.0.metadata b/src/Dazzle-1.0.metadata
index 0d90e7f..d450fd8 100644
--- a/src/Dazzle-1.0.metadata
+++ b/src/Dazzle-1.0.metadata
@@ -3,3 +3,9 @@ Dazzle name="Dazzle"
*.*.cancellable#parameter nullable default=null
*.*.io_priority default=GLib.Priority.LOW
+StackList
+ .push skip=false
+ .push.create_widget_func nullable
+StackListCreateWidgetFunc skip=false
+ .item type="GLib.Object"
+
diff --git a/src/widgets/dzl-stack-list.h b/src/widgets/dzl-stack-list.h
index 7dfd561..9429f05 100644
--- a/src/widgets/dzl-stack-list.h
+++ b/src/widgets/dzl-stack-list.h
@@ -49,6 +49,16 @@ struct _DzlStackListClass
gpointer _reserved8;
};
+/**
+ * DzlStackListCreateWidgetFunc:
+ * @item: (type GObject): the item from the model for which to create a widget for
+ * @user_data: (closure): user data from dzl_stack_list_push()
+ *
+ * Called for stack lists that are bound to a #GListModel with
+ * dzl_stack_list_push() for each item that gets added to the model.
+ *
+ * Returns: (transfer full): a #GtkWidget that represents @item
+ */
typedef GtkWidget *(*DzlStackListCreateWidgetFunc) (gpointer item,
gpointer user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]