diff options
author | David Pirotte <david@altosw.be> | 2023-10-31 01:20:58 -0300 |
---|---|---|
committer | David Pirotte <david@altosw.be> | 2023-10-31 01:20:58 -0300 |
commit | e2294f0bc1f45776293456b92b92ca64be0193f6 (patch) | |
tree | be76f25309c61cb9a3a66506cee4cd8f7bc77249 | |
parent | b0a4ff25bd02f9726f4e912127c146bc33f8087a (diff) |
New %async-api parameter
* g-golf/init.scm (%async-api): New parameter, which we will use in the
adw1-demo examples. See the comment above the new parameter definition
for a description of the problem, as well how it might be used, as an
adw1-demo script command line option, to trigger and debug a 'Gio
Async API' message dialog response model capture,
-rw-r--r-- | g-golf/init.scm | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/g-golf/init.scm b/g-golf/init.scm index efcf129..5f64297 100644 --- a/g-golf/init.scm +++ b/g-golf/init.scm @@ -35,7 +35,9 @@ %libg-golf %debug - %iface-vfunc-warnings)) + %iface-vfunc-warnings + + %async-api)) (define %libgirepository (dynamic-link "libgirepository-1.0")) @@ -47,3 +49,21 @@ (define %debug (make-parameter #f)) (define %iface-vfunc-warnings (make-parameter #f)) + +;; The AdwMessageDialog class offers two ways to capture the user +;; response: (1) the traditional dialog 'response signal callback and +;; (2) the Gio Async API. + +;; For some misterious reason (still), I couldn't (yet) make the Gio +;; Async API approach work. See the commit dc9ff1f as well as the +;; comments in the (adw1-demo dialogs) module for a detailed description +;; of the problem. + +;; Till I or someone else figures out what's going on and how to fix it, +;; I'll swith to use the dialog 'response signal callback model, but to +;; be able to later track and possibly fix this problem, I add this +;; parameter, that together with the ./examples/adw-1/adw1-demo.scm -a, +;; --async-api command line option, allows the (adw1-demo dialogs) to +;; implement and selectively switch to one response model or the other. + +(define %async-api (make-parameter #f)) |