[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guile-gnome bits
From: |
Andy Wingo |
Subject: |
Re: guile-gnome bits |
Date: |
Sun, 06 May 2007 16:33:33 +0200 |
Hello, 2005!
On Fri, 2005-02-25 at 00:31 +0100, Andreas Rottmann wrote:
> Kevin Ryde <address@hidden> 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/
- Re: guile-gnome bits,
Andy Wingo <=