Re: Unsolved clipping problem

2006-09-03 Thread Tor Lillqvist
Tintin72 writes: > Do you think is there a way to improve/optimise my code and remove this > problem ? Yes. Thanks to Mitch on #gimp for this hint: You should set the background of the window instead of trying to paint the background yourself in the expose_event handler. Below is your sample pro

Re: Unsolved clipping problem

2006-09-03 Thread Michael Torrie
On Sun, 2006-09-03 at 01:33 -0700, Tintin72 wrote: > Hi again, > > Just for information, I would like you to see exactely the nature of this > clipping problem. > So I captured a little .avi movie (900ko) from my pc's screen. > http://web8.free.fr/images/pbClipping.avi > Quality is not very good

Re: Unsolved clipping problem

2006-09-03 Thread Tintin72
got to say (maybe is it a clue): More I draw lines in the drawarea, more the clipping effect appears during the scrolling. Tintin72 -- View this message in context: http://www.nabble.com/Unsolved-clipping-problem-tf2188276.html#a6120272 Sent from the Gtk+ - Apps Dev forum at

Re: Unsolved clipping problem

2006-09-02 Thread Tintin72
>>> Do you have a screenshot? >> http://web8.free.fr/images/pbClipping.gif >Is this how it looks just temporatily while you are moving the slider Yes it is. Do you think is there a way to improve/optimise my code and remove this problem ? -- View this message in context: ht

Re: Unsolved clipping problem

2006-09-02 Thread Tor Lillqvist
Tintin72 writes: > Even if I remove the line: > gtk_box_pack_start(GTK_BOX(myApp.pScrollBar), myApp.pDrawArea, TRUE, TRUE, > 0); > the clipping effect occurs just the same. Of course it does. gtk_box_pack_start() notices the first paramter isn't a GtkBox, so it returns immediately without do

Re: Unsolved clipping problem

2006-09-02 Thread Tor Lillqvist
>> Do you mean that even after you stop moving the slider your program looks >> wrong? > No, the clipping effect occurs while I move the slider. But when you let go of the slider, the windows look OK? I don't think there is any problem then, surely it is understandable that while scrolling t

Re: Unsolved clipping problem

2006-09-02 Thread Tintin72
n't find a single clue about my problem. 2 persons have compiled my code (under Linux) and it works... very strange. I really need help Thanks -- View this message in context: http://www.nabble.com/Unsolved-clipping-problem-tf2188276.html#a6114208 Sent from the Gtk+ - Apps Dev forum

Re: Unsolved clipping problem

2006-09-02 Thread Yeti
On Thu, Aug 31, 2006 at 05:01:59AM -0700, Tintin72 wrote: > > >gtk_box_pack_start(GTK_BOX(myApp.pScrollBar), myApp.pDrawArea, TRUE, TRUE, > 0); > >a GtkScrolledWindow is not a GtkBox. This line causes the warnings: > >GLib-GObject-WARNING **: invalid cast from `GtkScrolledWindow' to `GtkBox' > >G

Re: Unsolved clipping problem

2006-09-02 Thread Tintin72
anything >at all. Don't you get these warnings? No, I use CodeBlocks IDE (with warning option checked). Have you any idea about this pb ? -- View this message in context: http://www.nabble.com/Unsolved-clipping-problem-tf2188276.html#a6078025 Sent from the Gtk+ - Apps Dev forum at Nab

Re: Unsolved clipping problem

2006-08-31 Thread Tor Lillqvist
Tintin72 writes: > So when I move the slider a little fast I get clipping effect on > the edges (up or down) of the drawing area. Could you explain more precisely what you mean? Do you mean that even after you stop moving the slider your program looks wrong? Or just intermittently during the scr

Unsolved clipping problem

2006-08-30 Thread Tintin72
m compiled my code on his system (Linux probably) and everything seems ok (no clipping at all). So I really don't understand. I builded many applications with different GUIs, and I've never had this kind of problem. Is there any incompatibilities between GTK and Windows ? Can somebody help me ? Th