Re: [gtk-list] Question on sizing a window...
- From: Federico Mena Quintero <federico nuclecu unam mx>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Question on sizing a window...
- Date: Tue, 4 May 1999 01:35:56 -0400
> I'm playing around with a small application and I've been trying to figure
> out how to resize the window to a specified size. I am currently using a call
> like the following:
>
> gtk_widget_set_usize(win, w, h);
>
> The problem with this is that it never shrinks the window, it will only make
> it larger. How can I shrink the window? On a somewhat related topic, I'm
> also curious how to add a callback that is called when the window is resized?
> Perhaps I didn't look hard enough for the latter.
Don't do this for toplevel windows; use gtk_window_set_default_size()
instead.
You can use the "size_allocate" signal to see when the window is
resized.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]