RE: resizing a window

Tor Lillqvist <[email protected]> Fri, 24 Jan 2003 21:34:30 +0000
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
[email protected] writes:
 > Not at all hard, except I am using glade to compile the interface and
 > gtk_window_set_resizable(...) is the function which is used.  Logically it
 > makes sence that if a window is set to not be resizeable, the
 > GDK_DECOR_RESIZEH decoration (and perhaps GDK_DECOR_MAXIMIZE) should be
 > removed.

Yes, but the documentation for gtk_window_set_decorated() says 

 * Depending on the system, this function may not have any effect when
 * called on a window that is already visible, so you should call it
 * before calling gtk_window_show().

while gtk_window_set_resizable() doesn't have any such restriction, so
mayne it wouldn't be a good idea to call gtk_window_set_decorated()
automatically from gtk_window_set_resizable(). It would be even more
confusing if the resizing decoations were turned off first before the
window is shows, and then if the window was made resizable later (when
visible), turning the decorations back on wouldn't work.

 > Is this a potential improvement to gtk?

Maybe yes, please open an enhancement request on bugzilla.

--tml



To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/