How to set a widget size without setting its size request?



Hi,
  I'm writing an program, which uses a GtkFixed widget and a GtkSocket inside it. The GtkFixed widget is in a toplevel window. I need adjust the position and size of the GtkSocket widget according to the size of its parent, the GtkFixed widget, in a proportional way. And the user must be able to change the window size.
  Using gtk_widget_size_size_request to set the minimal size of the GtkSocket widget works, but it'll prevent the user from shrinking the window size. After checking gtk manual, I found that gtk_widget_size_allocate might be the right function, but unfortunately it doesn't take effect at all. So is there any way to solve this issue?


Regards
James Su


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