goocanvas vs crcanvas,which better?

2009-03-25 Thread chen zhixin
Program need to draw realtime lines on per frame,first time i use cairo_surface_create_similar and draw surface on the frame. (frame draw on GtkDrawingArea),this make fast on my pc and the Machine(use slitaz system),but when i use ubuntu on the machine,the Xorg process take 100% cpu,this make me c

RE: Custom container with multiple GdkWindows. Adding widgets don't show.

2009-03-25 Thread sledge hammer
Thanks. Your first solution helped a bit. But I finally understood how totem does it. It is an entirely different approach and maybe easier. Totem uses, for the video part, a custom widget named "Bacon". When in fullscreen mode Bacon covers the whole screen. The controls that pop-up when the mo

Re: GtkWidget "visibility-notify-event" and visibility.

2009-03-25 Thread Chris Vine
On Wed, 25 Mar 2009 16:24:57 +0300 Alexander wrote: > On Wednesday 25 March 2009, Chris Vine wrote: > > On Tue, 24 Mar 2009 23:49:13 +0300 > > Alexander wrote: > > [snip] > > > Thanks, GTK_WIDGET_VISIBLE() may help me. Is there any way to > > > catch event when widget is actualy hiding? > > > >

Re: GtkWidget "visibility-notify-event" and visibility.

2009-03-25 Thread Alexander
On Wednesday 25 March 2009, Chris Vine wrote: > On Tue, 24 Mar 2009 23:49:13 +0300 > Alexander wrote: > [snip] > > Thanks, GTK_WIDGET_VISIBLE() may help me. Is there any way to catch > > event when widget is actualy hiding? > > You could use the hide signal that GtkWidget objects emit. > > Chri