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

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

 



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
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux