[gnomemm] Gnome--: How to ceate a Gnome::CanvasLine ?



I tried to make a CanvasLine using the code:

      Gnome::CanvasPoints points(3);
      points.push_back(Gnome::Art::Point(0,0));
      points.push_back(Gnome::Art::Point(100,100));
      Gnome::CanvasLine * line = new Gnome::CanvasLine(*group,points);

compile OK, but it has the follwing run time error:

Gtk-CRITICAL **: file gtkobject.c: line 939 (gtk_object_add_arg_type): assertion `arg_type > GTK_TYPE_NONE' failed.

GnomeUI-WARNING **: gnome_canvas_item_set(): could not find argument "points" in the `Gnome__CanvasLine' class ancestry

Anyone can help me? please reponse ASAP, Urgent...

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/




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