From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ariel Rios To: David Pirotte Cc: guile-gtk Subject: Re: gtk-standalone-main Date: Tue, 17 Apr 2001 11:56:00 -0000 Message-id: <987526914.1339.1.camel@soleil> References: <3ADC0CC6.24373634@altosw.be> X-SW-Source: 2001-q2/msg00012.html El 17 Apr 2001 11:28:38 +0200, David Pirotte escribió: > I'd like to launch guile (or guile-gtk) 'manually', in order to > have a listener that remains active while I am working and: > > 1. launching a little gtk app in a way that I can still > type things in the listener from where I launched it > so I can 'get 'set widgets and learn ... > (is there another way then: gtk-standalone-main ?) > > 2. avoiding that hitting the 'destroy provoques the guile > listener exit as well: I tried the following: > > (gtk-signal-connect window "destroy" gtk-false) > > but as the little app is launched with gtk-standalone-main, > it appears not to be sufficient In this case, avoid using gtk-standalone-main. You can do, for eg: (define window (gtk-window-new 'toplevel)) (define button (gtk-button-new-with-label "Hello")) (gtk-container-add window button) (gtk-widget-show-all window) (gtk-widget-hide-all window) (gtk-signal-connect button "clicked" (lambda () (gtk-widget-destroy window)) (gtk-widget-show-all window) Which enables you to play w/guile-gtk from your guile prompt ariel