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



On Tue, 04 Jul 2006 09:33:41 +0200, chao yeaj <yeajchao gmail com> 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



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