Re: How to tear off a toolbar?



On Wed, Jul 14, 2010 at 5:52 PM, Chris Vine <chris cvine freeserve co uk> wrote:
> On Thu, 15 Jul 2010 03:18:09 +0800
> "Bruce" <bruce1914 uestc edu cn> wrote:
>>       Can anyone tell me how can I tear off a toolbar?
>>       I can tear off a menu using gtk_tearoff_menu_item_new, but I
>> still want to get a toolbar that can be tear off from the main window
>> and attach to it again.
>
> You can use a GtkHandleBox (or at least you certainly used to be able
> to do so - I used it for that purpose some years ago but it has gone
> out of fashion now, for good reason in my view).

the HB leaves space behind ... not so great.

i looked at sodipodi years ago for inspiration because they had real
tearoffs - remove them and the space they occupied vanishes until they
are reattached. ardour uses a C++ implementation of the same idea. its
fairly complex too implement.


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