[pygtk] gtk.Action.connect_proxy

John Finlay finlay at moeraki.com
Sat Mar 15 03:22:20 WST 2008


Geoff Bache wrote:
>> The tooltip is only set on a ToolItem but the stock icon will be used 
>> if you set the "use-stock" property of the button to True:
>>
>> button.set_use_stock(True)
>>
>> John
> Thanks John,
>
> Unfortunately this seems to have the effect that the label text is 
> derived from the stock icon's name rather than the title of the 
> action! So then I have to transfer the label by hand instead...
>
> Do you know if there is any reason why the tooltip isn't transferred 
> (and why you can transfer the stock icon or the label, but not both!)? 
> It's easy to transfer both by hand of course, but when the docs 
> promise to do it for you it seems a bit weird...
>
The tooltip isn't set because there's no code to set it probably because 
of the way the older (<2.12) tooltips were done. You could file a 
feature bug report against GTK to add syncing tooltips for buttons.

For buttons specifying a label seems mutually exclusive with specifying 
a stock id.

The docs state that various properties are synced but not that all or 
conflicting or unused properties are synced though it would be useful if 
there was more detail about how these were applied for the various proxy 
objects.

John


More information about the pygtk mailing list