Re: Need help with GnomeCanvasImage



On Mon, 14 Feb 2000, Jürgen Weinberger wrote:
> item=gnome_canvas_item_new(group,
>                            gnome_canvas_image_get_type(),
>                            "image",gnome_canvas_load_alpha(file),
>                            "x", 100,
                                  ^^^ must be a double value
>                            "y", 100,
                                  ^^^ must be a double value
>                            "width", 100,
                                      ^^^ must be a double value
>                            "height", 100,
                                       ^^^ must be a double value
>                            "anchor", GTK_ANCHOR_NW,
>                            NULL);

Either you do

  "x", (gdouble) 100, 
  "y", (gdouble) 100, 
  ...

or 

  "x", 100.0, 
  "y", 100.0, 
  ...

BTW: This should be somewhere in the FAQ. I think this is the most done
error if you are new in GNOME programming.

Regards,

          Jens
 





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