Chris Lambacher wrote:
Hi,
I sent a question about this a while ago but got no response.
The set_icon_size method of gtk.Toolbar is depricated in pygtk 2.4.
Is there a new way of changing the Icon size in a toolbar?
I believe that set_icon_size is deprecated to discourage apps from
changing the user preferences for toolbar icon size that is set in an RC
file. That said you could try changing the 'gtk-toolbar-icon-size' in
the toolbar settings. See:
http://www.pygtk.org/pygtk2reference/class-gtkwidget.html#method-gtkwidget--get-settings
http://www.pygtk.org/pygtk2reference/class-gtksettings.html
http://www.pygtk.org/pygtk2reference/class-gtksettings.html#method-gtksettings--set-long-property
The origin parameter in set_long_property is an application specified
string like "filename:linenumber" or "myapp".
John
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/