aboutsummaryrefslogtreecommitdiff
path: root/frame.lisp
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2026-07-26 10:23:43 +0100
committerGene Pasquet <dev@etenil.net>2026-07-26 10:23:43 +0100
commit198fcf265413929632580504ab91abc7460e6f31 (patch)
tree06b9338db11d6d707694b7180be30eb60b02aa51 /frame.lisp
parent244bb89c73d6829c68e2e7c3270d146493981fbc (diff)
Fixes
Diffstat (limited to 'frame.lisp')
-rw-r--r--frame.lisp16
1 files changed, 8 insertions, 8 deletions
diff --git a/frame.lisp b/frame.lisp
index b65c631..2f3cc91 100644
--- a/frame.lisp
+++ b/frame.lisp
@@ -13,14 +13,14 @@
(:panes
(title :title :display-string "Solar short")
(app :application :display-function 'display-haiku)
- (action-next :push-button :label "Next"))
+ (action-next :push-button :label "Next"
+ :activate-callback (lambda (gadget) (com-next))))
(:layouts
(default
(vertically () title app action-next))))
-
-;; (define-read-haiku-command (com-next :name t)
-;; ((book 'book))
-;; (with-application-frame (frame)
-;; (let ((book (book frame)))
-;; (when book
-;; (next-haiku book)))))
+
+(define-read-haiku-command (com-next :name "Next")
+ ()
+ (with-application-frame (frame)
+ (next-haiku frame)
+ (redisplay-frame frame)))