gnome_canvas_image_get_type() deprecated, what to use instead?



Hello all. I would like to know how to go about
loading a pixmap (.xpm) image onto a Gnome Canvas, for
Gnome 2.0. The books I've got are all out of date
(somebody should write a new one!). My code snippet
currently is;

group = gnome_canvas_root(GNOME_CANVAS(canvas));
arrowPixbuf = gdk_pixbuf_new_from_file("redArrow.xpm",
error);
arrow = gnome_canvas_item_new(group,
gnome_canvas_image_get_type(), "pixbuf", 
arrowPixbuf, "x", 0.0, "y", 0.0, "width", 200.0, 
"height", 200.0, "anchor", GTK_ANCHOR_CENTER, NULL);

and I would appreciate an example of how to go about
doing this in the new Gnome, because 
gnome_canvas_image_get_type() appears to be
deprecated. Thanks in advance.
John Mann

=====
"I'd rather be debugging...." - Anon

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com



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