RE: Jerky window resizing in Windows GTK app



Hi again,

OK, I found the problem. After continuing to pair down the app until the
problem went away, it turned out to be due to this line:

  gtk_window_set_position(GTK_WINDOW(mainWin), GTK_WIN_POS_CENTER_ALWAYS);

It's the continual re-centering due to that GTK_WIN_POS_CENTER_ALWAYS that
is not working very well.

After changing it to GTK_WIN_POS_CENTER (which is actually what I really
wanted anyway) it resizes nice and smoothly now.

Ian

> -----Original Message-----
> From: gtk-list-bounces gnome org [mailto:gtk-list-bounces gnome org] On
> Behalf Of Ian Puleston
> Sent: Monday, March 24, 2008 12:33 PM
> To: gtk-list gnome org
> Subject: RE: Jerky window resizing in Windows GTK app
> 
> > -----Original Message-----
> > From: tlillqvist gmail com [mailto:tlillqvist gmail com] On Behalf Of
> Tor
> > Lillqvist
> > Sent: Monday, March 24, 2008 1:40 AM
> >
> > I would say that is not expected, at least with a current GTK+
> > version. What version of GTK+ are you using?
> 
> Pretty much current - 2.12.3.
> 
> > Do you have a minimal but complete sample program that exhibits the
> > behaviour?
> 
> I do now. I've cut my program down to bare bones without actually changing
> the layout of the window, and uploaded a zip file (119 Kbytes) containing
> the source plus an exe (compiled with the MinGW compiler) here:
> 
> http://diverian.tripod.com/home/Files/gtk-test.zip
> 
> The tstapp.exe program in the bin directory demonstrates the problem.
> 
> Ian
> 
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list




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