Re: when wride my own widget, how to keep the rate of the widget's height and width at a constant value

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

 



On Tue, 04 Jul 2006 09:33:41 +0200, chao yeaj <yeajchao@xxxxxxxxx> wrote:

>             I am writing my own gtk widget for my application
>             What i want to achieve is that: when the user change the
> widget's size with his mouse,i want  the widget keep this:
> height/width =  3/4      .
>                 i did not knowe how to write the widget's
> "gtk_xxxx_size_allocate" function to achieve this

Maybe you can pack the widget into a GtkAspectFrame.

--Daniel
_______________________________________________

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