guile-gtk-general
[Top][All Lists]
Advanced

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

guile-gnome: glade with GnomeApp works?


From: Greg Troxel
Subject: guile-gnome: glade with GnomeApp works?
Date: 30 Dec 2004 16:26:26 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

I am running NetBSD/i386 2.0 with guile-gnome-platform 2.7.96 and
guile 1.6.5, with a pretty vanilla gnome 2.8 install (from pkgsrc).
Gnome itself works fine, and I can run a program that makes a canvas
and moves things around on it (modified from the example in the
distribution).

I have installed photoblogger 0.3 and gotten it to run.  I can't
upload files, but I think that's because I don't understand gnomevfs
paths well enough.  Clearly the basic app is running, though - I can
add pictures and try to upload them.

I am trying to write my own program, and I used glade-2 to generate a
UI.  Because I want to have a canvas in my program, I did "create new
gnome project" rather than "create new gtk project".
This seems to have resulted in the top-level widget being GnomeApp,
and containing a BonoboDock, BonoboDockItem, and then a GtkMenuBar.
(I deleted the toolbar.)  Then, there is a vbox which has a scrolled
window which has a canvas.

Starting my program, which just calls glade-xml-new:

  use-modules (ice-9 format))

  (use-modules (gnome-0))
  (use-modules (gnome gtk))
  (use-modules (gnome glade))
  (use-modules (gnome gnome-ui))
  (use-modules (gnome corba))
  (use-modules (gnome canvas))

  (use-modules (gnome gtk graphical-repl))

  ;; XXX do this more cleanly
  (define glade-file (string-append "/usr/sinew" "/share/svp/svp.glade"))

  (format #t "glade ~A ~A\n" glade-file (file-exists? glade-file))

  (define glade-xml (glade-xml-new glade-file))
  (format #t "glade-xml ~A\n" glade-xml)

I get:

(gnome gtk): [goops gobject glib atk pango gdk gtk support]


initializing corba primitives... done.

glade /usr/sinew/share/svp/svp.glade #t
ERROR: GLib-GObject: file gobject.c: line 1222 (g_object_get): assertion 
`G_IS_OBJECT (object)' failed


so glade-xml-new is failing.

gobject.c in the sources has fewer than 1222 lines (590).  I can't
find g_object_get in the sources at all, but it seems to be in
libgobject-2.0.  Is this error coming from glib itself?

So is using GnomeApp and BonoboDock supported?

Any clues appreciated.


-- 
        Greg Troxel <address@hidden>




reply via email to

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