Re: Menu bar items without icon indent



On Mon, 2008-12-29 at 22:56 -0500, Yu Feng wrote:
I've just written a similar widget.

You should subclass GtkMenuItem,
override toggle_size_request, return zero to the *requistion parameter.

implement the creation methed
new_with_label(),
put a GtkLabel as the child of the bin in the creation method.

You may also need to override size_allocate and size_request method.

Thanks!

I've been away, but I will try to see if there is any interest in
getting additional flexibility in the stock GtkMenuItems, along the
lines of Tristan Van Berkom's suggestion.

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)




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