This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: [Glade with Guile Emacs]
- To: Keisuke Nishida <kxn30 at po dot cwru dot edu>, Sascha Ziemann <szi at aibon dot ping dot de>
- Subject: Re: [Glade with Guile Emacs]
- From: Ariel Rios <jarios at usa dot net>
- Date: 14 Mar 00 10:27:54 CST
- CC: guile at sourceware dot cygnus dot com
Keisuke Nishida <kxn30@po.cwru.edu> wrote:
> (define main-window (glade-create "widget-name1"))
> (define some-button (glade-create "widget-name2"))
>
> (gtk-container-add main-windw some-button)
This is done with:
(define xml (glade-xml-new "my-new-widget.glade"))
(define button (glade-xml-get-widget xml "button1")
(gtk-container-add main-window button)
> If this is possible, I guess I could write such a Guile Emacs
> interface that makes effects on those widgets dynamically
> whenever people evaluated a gtk function. (Just type `M-C-x'
> on the expression to add a button to the window!)
And of course that's possible.
You may look at the code of galway for an extended working example
of an application created using guile and libglade.
Ariel
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1