This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository e16-epplets.
View the commit online.
commit b57411ca2bb55e145e33c3f151ecf9a9ad33da2c
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sun Dec 10 10:26:10 2023 +0100
api: Introduce Epplet_wc_callback_t
Avoiding some indent instability.
---
api/epplet.c | 8 ++++----
api/epplet.h.in | 7 ++++---
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/api/epplet.c b/api/epplet.c
index 3782bfa..16e3e55 100644
--- a/api/epplet.c
+++ b/api/epplet.c
@@ -690,10 +690,10 @@ Epplet_create_window_borderless(int w, int h, const char *title, char vertical)
Window
Epplet_create_window_config(int w, int h, const char *title,
- void (*ok_func)(void *data),
- void *ok_data, void (*apply_func)(void *data),
- void *apply_data,
- void (*cancel_func)(void *data), void *cancel_data)
+ Epplet_wc_callback_t *ok_func, void *ok_data,
+ Epplet_wc_callback_t *apply_func, void *apply_data,
+ Epplet_wc_callback_t *cancel_func,
+ void *cancel_data)
{
Window ret;
Epplet_gadget ok_btn, apply_btn, cancel_btn;
diff --git a/api/epplet.h.in b/api/epplet.h.in
index 03bdf49..daa18c3 100644
--- a/api/epplet.h.in
+++ b/api/epplet.h.in
@@ -488,12 +488,13 @@ EAPI Window Epplet_create_window_borderless(int w, int h,
* functions listed for ok, apply and cancel. If you specify any of the
* functions as null, the button won't be displayed. This means you can get
* just Ok and Cancel by supplying NULL for apply_cb. */
+typedef void (Epplet_wc_callback_t) (void *data);
EAPI Window Epplet_create_window_config(int w, int h, const char *title,
- void (*ok_func)(void *data),
+ Epplet_wc_callback_t * ok_func,
void *ok_data,
- void(*apply_func)(void *data),
+ Epplet_wc_callback_t * apply_func,
void *apply_data,
- void(*cancel_func)(void *data),
+ Epplet_wc_callback_t * cancel_func,
void *cancel_data);
/* This is how you add gadgets to specific windows. When you create a
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.