[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Drawing lines in <gnome-canvas>
From: |
Marcello Mathias Herreshoff |
Subject: |
Drawing lines in <gnome-canvas> |
Date: |
Sat, 13 Nov 2004 19:07:16 -0800 |
User-agent: |
Mutt/1.4.1i |
Hello,
I cannot draw lines in gnome canvases with guile-gnome-platform-2.7.95
(with Guile version 1.6.4).
Here is example code which should draw a red diagonal line:
--BEGIN--
(define w (make <gtk-window> #:type 'toplevel))
(define canv (make <gnome-canvas>))
(define the-line (make <gnome-canvas-line>
#:parent (root canv)
#:points #(0 0 100 100)
#:fill-color "red"))
(gtk-widget-show-all w)
(gtk-container-add w canv)
(gtk-main)
--END--
However, the above code generates the following error:
ERROR: In procedure scm->gvalue:
ERROR: Don't know how to make values of type #<gtype GnomeCanvasPoints>
Is this a guile-gnome bug or have I done something wrong?
-=+Marcello Mathias Herreshoff
- Drawing lines in <gnome-canvas>,
Marcello Mathias Herreshoff <=