Re: guile-gnome bits

Andy Wingo <[email protected]>
Newsgroups gmane.lisp.guile.gtk
Message-ID <[email protected]>
Hello, 2005!

On Fri, 2005-02-25 at 00:31 +0100, Andreas Rottmann wrote:
> Kevin Ryde <[email protected]> writes:
> > I struck something strange with GnomeApp though,
> >
> > 	(putenv "DISPLAY=:0")
> > 	(use-modules (gnome-0))
> > 	(use-modules (gnome gnome-ui))
> >
> > 	(gnome-app-new "foo" "bar")

This now calls abort() inside libgnome, saying:

GnomeUI-ERROR **: You must call gnome_program_init() before creating a
GnomeApp

So, if we call it like Andreas did:

> guile> (gnome-program-init "foo" "0.0.1")
> #<<gnome-program> b6f29da0>
> guile> (gnome-app-new "foo" "bar")
> 
> Backtrace:
> In current input:
>    6: 0* [#<gw:dynproc gnome-app-new (2)> "foo" "bar"]
> 
> <unnamed port>:6:1: In expression (gnome-app-new "foo" "bar"):
> <unnamed port>:6:1: GLib-GObject: IA__g_object_get_valist: object class `GnomeProgram' has no property named `default-icon'
> ABORT: (gruntime-error)

I get this error now as well; it seems to be very much internal to GLib.
However now, we don't scm_error on GLib warning messages, as there's no
guarantee that that is safe or a good idea. So in this case it actually
gives you a GnomeApp back now.

libgnomeui is way deprecated though, on the upstream side, so I am not
suggesting that anyone do this ;-)

Andy.
-- 
http://wingolog.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.