Re: GnomeAnimator(GtkWidget) into a GnomeCanvasWidget




Hello,

Is much, as I know, width/height have to be doubles also, i.e.:

gnome_canvas_item_new (...
	...
	"width", 180.0,
	"height", 100.0
	...

Lauris Kaplinski


On Mon, 14 Feb 2000, J|rgen Weinberger wrote:

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




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