Re: GnomeCanvasPixbuf




Cool!  Got it working now.  It was the floating point issue.  
I forgot that there is no type checking in variable argument 
lists.

Thanks!

On Thu, 16 Dec 1999, John R. Sheets wrote:

> 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
> 
> 
> -- 
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
> 
> 

================================================================
Jamie Guinan                         Blue Button Solutions, Inc.
guinan@bluebutton.com                  http://www.bluebutton.com
================================================================



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