From: Jan Nieuwenhuizen Date: Wed, 10 Nov 2004 23:38:01 +0000 (+0000) Subject: add text entry X-Git-Tag: release/2.5.14~584 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=77bd15a240accf64022be1704bc1395b15692a71;p=lilypond.git add text entry --- diff --git a/scm/framework-gnome.scm b/scm/framework-gnome.scm index 59ee4a367c..3c2636e62d 100644 --- a/scm/framework-gnome.scm +++ b/scm/framework-gnome.scm @@ -94,7 +94,7 @@ (define (debugf string . rest) (if #f - (stderr (cons string rest)))) + (apply stderr (cons string rest)))) (define-class () (name #:init-value "untitled" #:init-keyword #:name #:accessor name) @@ -375,32 +375,29 @@ ;; http://www.gtk.org/tutorial/sec-textentries.html (let ((window (make )) (vbox (make )) - (button (make #:label "Ok"))) + (ok (make #:label "Ok"))) (add window vbox) - (connect button 'clicked (lambda (b) (destroy window))) + (connect ok 'clicked (lambda (b) (destroy window))) (for-each (lambda (x) - (let ((button (make - #:xalign 0.0 - #:label - (string-append - (symbol->string (car x)) - ": " - (format #f "~S" (cdr x)))))) - (set-size-request button 150 BUTTON-HEIGHT) - (add vbox button))) - (cons (list id) properties)) - (add vbox button) + (let ((label (make + ;;#:label (symbol->string (car x)))) + #:label (format #f "~S" (car x)))) + ;;(symbol->string (car x)))) + (entry (make + #:text (format #f "~S" (cdr x)))) + (hbox (make ))) + (add hbox label) + (add hbox entry) + (set-size-request label 150 BUTTON-HEIGHT) + (add vbox hbox))) + (append properties basic-properties)) + (add vbox ok) - ;; FIXME: how to do window placement? - ;; - no effect: - (move window x y) (show-all window) - ;; - shows actual movement: - (move window x y) - ))))))) + (move window x y)))))))) ((2button-press) (gobject-set-property item 'fill-color "green")) ((key-press)