public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
From: Ariel Rios <ariel@linuxppc.org>
To: David Pirotte <david@altosw.be>
Cc: guile-gtk <guile-gtk@sourceware.cygnus.com>
Subject: Re: gtk-standalone-main
Date: Tue, 17 Apr 2001 11:56:00 -0000	[thread overview]
Message-ID: <987526914.1339.1.camel@soleil> (raw)
In-Reply-To: <3ADC0CC6.24373634@altosw.be>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]

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  

  reply	other threads:[~2001-04-17 11:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-17  1:27 gtk-standalone-main David Pirotte
2001-04-17 11:56 ` Ariel Rios [this message]
2001-04-17 13:59   ` gtk-standalone-main David Pirotte
     [not found]   ` <20010417225733.A20322@mail.aura.de>
2001-04-17 21:29     ` gtk-standalone-main Ariel Rios
2001-04-18  8:10       ` gtk-standalone-main David Pirotte
2001-04-20 10:20         ` gtk-standalone-main Marius Vollmer
2001-08-21 17:17 gtk-standalone-main David Pirotte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=987526914.1339.1.camel@soleil \
    --to=ariel@linuxppc.org \
    --cc=david@altosw.be \
    --cc=guile-gtk@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).