unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* libglade and guile-gtk
@ 2004-01-05  7:56 Ken Restivo
  2004-01-06 11:10 ` Andreas Rottmann
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Restivo @ 2004-01-05  7:56 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to find out if Guile and libglade work together, and can't seem to get the simplest sample application to run.

When I run:
	(use-modules
		(gtk gtk)
		(gtk libglade)
	)
	(define gui (glade-xml-new "gladetest.glade" "topwindow"))
	(glade-xml-signal-autoconnect gui)
	(define w (glade-xml-get-widget gui "topwindow") )
	(gtk-standalone-main w)

I get:
        GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed.
        ** WARNING **: unknown widget class 'GtkWindow'

I find it hard to imagine that GtkWindow could actually be an unknown widget class. The glade file "gladetest.glade" is bare-bones:  it just has a top-level GtkWindow "topwindow", which contains a single GtkEntry.

I was surprised to find that "w" evaluates to "#<GtkLabel 809cda0>" and not to a GtkWindow. There are no GtkLabels in my glade file.

Also strange, (glade-xml-get-widget gui) without a root-level widget as an arg, dies with:
	** CRITICAL **: file glade-xml.c: line 545 (glade_xml_get_widget): assertion `name != NULL' failed.

I'm on Debian Woody, with GTK1.2, libglade0 0.17, Guile 1.4, and libguilegtk0 0.20.

I'm probably doing something very obviously wrong, but I've no idea what. 

Thanks.

- -ken
- -- 
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE/+Rive8HF+6xeOIcRAnyFAJ4s//D65C1boswWZumH7FlohujgywCgr1SM
yKHLENuYNB9gQjc/8JdUJKI=
=qtQz
-----END PGP SIGNATURE-----


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-06 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-05  7:56 libglade and guile-gtk Ken Restivo
2004-01-06 11:10 ` Andreas Rottmann

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).