guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libglade and guile-gtk


From: Ken Restivo
Subject: libglade and guile-gtk
Date: Sun, 4 Jan 2004 23:56:31 -0800
User-agent: Mutt/1.4i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]