This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Glade with Guile Emacs]


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]