Re: Help with GdkWindow size
- From: David Marceau <uticdmarceau2007 yahoo ca>
- To: gtk-app-devel-list gnome org
- Subject: Re: Help with GdkWindow size
- Date: Sun, 23 Mar 2014 19:09:11 -0400
There is a difference between resize and expose events. You're going to
have to take care of this difference within your code and possibly force
the expose event to trigger a resize event which is not necessarily done
by default.
The urls below show how to set the configure event in X, Motif and
GTK/GDK to the appropriate window resize callback. The gtk tutorial
mentioned a drawing area pixmap to be removed and recreated with the
correct size.
http://www.lemoda.net/c/xlib-resize/
http://zetcode.com/tutorials/gtktutorial/gtkevents/
http://www.gtk.org/tutorial1.2/gtk_tut-23.html
http://www-f9.ijs.si/~matevz/docs/007-2392-003/sgi_html/ch03.html
With all the above being said, have you succeeded in running your app on
the newer os without changing the lines of code? I tend to believe you
don't need to change your c code if you simply recompile and run on the
newer os. Motif Libs exist on the newer os, just to get it running.
Cheers,
David Marceau
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]