From: Ole Myren Rohne <ole.rohne@cern.ch>
To: guile-gtk@sourceware.cygnus.com
Subject: gtk-text-insert freeze with gtk-1.3
Date: Tue, 11 Apr 2000 03:10:00 -0000 [thread overview]
Message-ID: <14578.64031.594104.430969@pcedu1.cern.ch> (raw)
The following code makes guile-gtk freeze. Why would I want to write
such a thing? - it is the essentials of gtk-show-error:-( causing my
program to freeze at every scheme error.
(use-modules (gtk gtk) (gtk gdk))
(let* ((w (gtk-window-new 'toplevel))
(h (gtk-hbox-new #f 1))
(t (gtk-text-new #f #f))
(s (gtk-vscrollbar-new (gtk-text-vadj t))))
(gtk-container-add w h)
(gtk-box-pack-start h t #t #t 0)
(gtk-box-pack-start h s #t #t 0)
(gtk-widget-show-all w)
(gtk-text-insert t #f #f #f "Hello\n" -1))
The program hangs in gdk_event_get_graphics_expose, waiting for an
*GraphicsExpose* event on the text widget (!) - which never comes. I
think this is a bug in gtk and it should be reproducible in pure C.
Making gdk_event_get_graphics_expose accept *Expose* events seems to
fix the problem, another fix would be to add a function
gdk_event_get_expose to be called on text widgets.
Regards,
Ole
next reply other threads:[~2000-04-11 3:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-11 3:10 Ole Myren Rohne [this message]
2000-04-11 4:59 ` Ole Myren Rohne
2000-04-11 23:56 ` Ole Myren Rohne
2000-04-12 12:09 ` Marius Vollmer
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=14578.64031.594104.430969@pcedu1.cern.ch \
--to=ole.rohne@cern.ch \
--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).