Re: [gtk-list] Re: Dynamic widgets
- From: "Robert S. Mallozzi" <mallors crazyhorse msfc nasa gov>
 
- To: gtk-list redhat com
 
- Subject: Re: [gtk-list] Re: Dynamic widgets
 
- Date: Mon, 24 Aug 1998 08:12:19 -0500 (CDT)
 
On 22 Aug, Havoc Pennington wrote:
> 
> On Sat, 22 Aug 1998, Robert S. Mallozzi wrote:
>> where the hbox was.  How do I get the window to dynmically 
>> size itself?
>> 
> 
> You need to call gtk_window_set_policy and turn on "auto shrink."
> 
Hi,
gtk_window_set_policy() doesn't seem to work correctly if I
also try to set the initial window size.  Using an hbox of
buttons,
  gtk_window_set_policy (GTK_WINDOW (window), TRUE, TRUE, TRUE);
  gtk_widget_set_usize (window, xSize, ySize);
Then the dynamic resize doesn't work.  If I change xSize to 0, 
then the ySize is obeyed, and the dynamic resize works correctly.
Likewise, if I have a vbox, I can set xSize, but ySize will break
the dynamic resize if it is non-zero.  Can't I set the initial window
size, and then let the window size be dynamic?
Regards,
-bob m.
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Robert S. Mallozzi                                          256-544-0887
                                                         Mail Code ES 84
Work: http://crazyhorse.msfc.nasa.gov/      Marshall Space Flight Center 
Play: http://cspar.uah.edu/~mallozzir/              Huntsville, AL 35812
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]