From: David Pirotte <david@altosw.be>
To: Ariel Rios <ariel@linuxppc.org>
Cc: rm@mamma.varadinet.de, guile-gtk@sourceware.cygnus.com
Subject: Re: gtk-standalone-main
Date: Wed, 18 Apr 2001 08:10:00 -0000 [thread overview]
Message-ID: <3ADDBCDC.5CC236D0@altosw.be> (raw)
In-Reply-To: <987561319.1538.6.camel@soleil>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1803 bytes --]
Ariel Rios wrote:
>
> El 17 Apr 2001 22:57:33 +0200, rm@mamma.varadinet.de escribió:
> > On Tue, Apr 17, 2001 at 01:01:54PM -0400, Ariel Rios wrote:
>
> > Not on my system, unfortunately ;-(
> > The call to gtk-widget-show-all will return 1 but
> > no widget apears on the screen. Only after the call
> > to gtk-standalone-main does the widget show.
> Which is your platform, guile-gtk and guile's version?
I had exactly the same problem and I was going to post a message, as I now
understand why I was unabble to discover by myself the solution Ariel proposed
I think there is a little difference between launching guile and loading the
module gtk or launching guile-gtk. here is an example of what happens on my
machine:
1. ;; first launching guile-gtk
david@faust:~/alto/projects/guile/tactus 95 $ guile-gtk
gtk> (use-modules (alto test))
gtk> (test-gui)
gtk>
==> ;; the window is realized and comes to the display normally
2. ;; launching guile
david@faust:~/alto/projects/guile/tactus 93 $ guile
guile> (use-modules (alto test))
guile> (test-gui)
==> ;; nothing happens, until I exit guile
guile> (exit)
==> ;; the window is realized but of course only remains a fraction
;; of a second on the screen
hope it helps
david
;; assuming the module (alto test) contains the following
(define-module (alto test)
;; from distribution
;; :use-module (database postgres)
;; :use-module (ice-9 format)
:use-module (gtk gtk)
;; from alto
;; :use-module (alto gtk-utils)
)
(export test-gui)
(define (test-gui)
(let ((window (gtk-window-new 'toplevel))
(button (gtk-button-new-with-label "Hello")))
(gtk-container-add window button)
(gtk-signal-connect button "clicked"
(lambda () (gtk-widget-destroy window)))
(gtk-widget-show-all window)
))
next prev parent reply other threads:[~2001-04-18 8:10 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 ` gtk-standalone-main Ariel Rios
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 ` David Pirotte [this message]
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=3ADDBCDC.5CC236D0@altosw.be \
--to=david@altosw.be \
--cc=ariel@linuxppc.org \
--cc=guile-gtk@sourceware.cygnus.com \
--cc=rm@mamma.varadinet.de \
/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).