GnomeAnimator(GtkWidget) into a GnomeCanvasWidget



I got a GnomeAnimator which works perfect and i want to put this Widget
into a GnomeCanvas.
I tried it if the GnomeCanvasWidget but it doesn't work!

ani = gnome_animator_new_with_size(180,40);
if
((gnome_animator_append_frames_from_file((GnomeAnimator*)ani,"./fishanim.png",0,0,75,60)==TRUE))
{printf("Frame 1 inserted");fflush(stdout);}

// when i try to call this function i always get an segfault
  
item=gnome_canvas_item_new(group,gnome_canvas_widget_get_type(),
                           "widget",GTK_OBJECT(ani),
                           "x",100.0,
                           "y",100.0,
                           "width",180,  
                           "height",40,
                           "anchor",GTK_ANCHOR_NW,
                           NULL);

I am just a beginner in programing Gnome/gtk+ and i got no idea why this
doesn't work. If anybody has ever worked with the GnomeCanvasWidget
PLEASE HELP !

THANX



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