Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gjs-util: Backport private closure annotations patch #126

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions libgjs-private/gjs-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void gjs_gtk_container_child_set_property(GObject* container, GObject* child,
* @store: a #GListStore
* @item: the new item
* @compare_func: (scope call): pairwise comparison function for sorting
* @user_data: (closure): user data for @compare_func
* @user_data: user data for @compare_func
*
* Inserts @item into @store at a position to be determined by the
* @compare_func.
Expand All @@ -258,7 +258,7 @@ unsigned int gjs_list_store_insert_sorted(GListStore *store, GObject *item,
* gjs_list_store_sort:
* @store: a #GListStore
* @compare_func: (scope call): pairwise comparison function for sorting
* @user_data: (closure): user data for @compare_func
* @user_data: user data for @compare_func
*
* Sort the items in @store according to @compare_func.
*/
Expand All @@ -270,7 +270,7 @@ void gjs_list_store_sort(GListStore *store, GjsCompareDataFunc compare_func,
/**
* gjs_gtk_custom_sorter_new:
* @sort_func: (nullable) (scope call): function to sort items
* @user_data: (closure): user data for @compare_func
* @user_data: user data for @sort_func
* @destroy: destroy notify for @user_data
*
* Creates a new `GtkSorter` that works by calling @sort_func to compare items.
Expand Down Expand Up @@ -305,7 +305,7 @@ GObject* gjs_gtk_custom_sorter_new(GjsCompareDataFunc sort_func,
* gjs_gtk_custom_sorter_set_sort_func:
* @sorter: a `GtkCustomSorter`
* @sort_func: (nullable) (scope call): function to sort items
* @user_data: (closure): user data to pass to @sort_func
* @user_data: user data to pass to @sort_func
* @destroy: destroy notify for @user_data
*
* Sets (or unsets) the function used for sorting items.
Expand Down Expand Up @@ -423,7 +423,7 @@ void gjs_log_set_writer_default() {
/**
* gjs_log_set_writer_func:
* @func: (scope notified): callback with log data
* @user_data: (closure): user data for @func
* @user_data: user data for @func
* @user_data_free: (destroy user_data_free): destroy for @user_data
*
* Sets a given function as the writer function for structured logging,
Expand Down
16 changes: 8 additions & 8 deletions libgjs-private/gjs-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ typedef gboolean (*GjsBindingTransformFunc)(GBinding* binding,
* @target:
* @target_property:
* @flags:
* @to_callback: (scope notified) (nullable):
* @to_data: (closure to_callback):
* @to_callback: (scope notified) (nullable) (closure to_data):
* @to_data:
* @to_notify: (destroy to_data):
* @from_callback: (scope notified) (nullable):
* @from_data: (closure from_callback):
* @from_callback: (scope notified) (nullable) (closure from_data):
* @from_data:
* @from_notify: (destroy from_data):
*
* Returns: (transfer none):
Expand All @@ -149,11 +149,11 @@ GBinding* gjs_g_object_bind_property_full(
* @target:
* @target_property:
* @flags:
* @to_callback: (scope notified) (nullable):
* @to_data: (closure to_callback):
* @to_callback: (scope notified) (nullable) (closure to_data):
* @to_data:
* @to_notify: (destroy to_data):
* @from_callback: (scope notified) (nullable):
* @from_data: (closure from_callback):
* @from_callback: (scope notified) (nullable) (closure from_data):
* @from_data:
* @from_notify: (destroy from_data):
*/
GJS_EXPORT
Expand Down
Loading