PDA

View Full Version : pygtk gtk.Toolbar.set_icon_size is deprecated... so what to use?



giuspen
January 5th, 2010, 08:56 PM
Hi,
I was using the function:

gtk.Toolbar.set_icon_size()

to let the user change the toolbar icons size but I see that is deprecated.

The deprecation does not tell what I'm supposed to use in place of it, anybody can help me?

Thanks in advance.

Brandon Williams
January 6th, 2010, 10:19 PM
Just keep on using it. According to the release announcement (http://mail.gnome.org/archives/gnome-announce-list/2009-December/msg00068.html) for PyGtk 2.17, that method is being undeprecated.

giuspen
January 7th, 2010, 02:30 PM
Just keep on using it. According to the release announcement (http://mail.gnome.org/archives/gnome-announce-list/2009-December/msg00068.html) for PyGtk 2.17, that method is being undeprecated.

Thank you.
I found also that an alternative is:

toolbar.set_property("icon-size", desired_icon_size)