Re: GnomeCanvasPixbuf



On Dec 16, 1999, "John R. Sheets" <dusk@ravendusk.org> wrote:
>   setup_item(gnome_canvas_item_new (group,
>                                     gnome_canvas_pixbuf_get_type (),
>                                     "pixbuf", pixbuf,
>                                     "x", 100.0,
>                                     "y", 100.0,
>                                     NULL));

Ooops!  Forgot to mention that you'll also need to add "x_set" and
"y_set"--otherwise the canvas will ignore "x" and "y".  So the final
product should look like this instead:

   setup_item(gnome_canvas_item_new (group,
                                     gnome_canvas_pixbuf_get_type (),
                                     "pixbuf", pixbuf,
                                     "x", 100.0,
                                     "x_set", TRUE,
                                     "y", 100.0,
                                     "y_set", TRUE,
                                     NULL));

John



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