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

* Re: libglade and guile-gtk
  2004-01-05  7:56 libglade and guile-gtk Ken Restivo
@ 2004-01-06 11:10 ` Andreas Rottmann
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Rottmann @ 2004-01-06 11:10 UTC (permalink / raw)
  Cc: guile-user, guile-gtk discussions

Ken Restivo <ken@restivo.org> writes:

> 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)
>
[error msgs snipped]

> 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. 
>
Maybe you could try guile-gobject[1], which is contains a GTK+2
binding, including libglade (the glade example seems to work for me
[tm])...

Also, you might be interested in the guile-gtk mailing list[2].

[1] http://www.gnu.org/software/guile-gtk/docs/guile-gobject/
[2] http://mail.gnu.org/mailman/listinfo/guile-gtk-general/
-- 
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.at
http://yi.org/rotty      | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Packages should build-depend on what they should build-depend.


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