Re: [gtk-list] Re: Dynamic widgets

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."


gtk_window_set_policy() doesn't seem to work correctly if I
also try to set the initial window size.  Using an hbox of

  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?


-bob m.

Robert S. Mallozzi                                          256-544-0887
                                                         Mail Code ES 84
Work:      Marshall Space Flight Center 
Play:              Huntsville, AL 35812

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