Hi again

I've come across a small problem using my own iconsize for a pixbuf
cellrenderer, and I'm not sure if it's a bug or if I'm missing
something.

When I try to set the stock-size property of the cellrenderer to my icon
size, i get this error:

(:5279): GLib-GObject-WARNING **: value "((GtkIconSize) 7)" of type
`GtkIconSize' is invalid or out of range for property `stock-size' of
type `GtkIconSize'


Here is a small snippet of code to reproduce it:

import gtk

MY_ICON_SIZE = gtk.icon_size_register("my-icon-size", 10, 10)

treestore = gtk.TreeStore(str)
treeview = gtk.TreeView(treestore)
column = gtk.TreeViewColumn()
treeview.append_column(column)

cr = gtk.CellRendererPixbuf()
column.pack_start(cr, gtk.FALSE)
column.add_attribute(cr, "stock-id", 0)
cr.set_property("stock-size", MY_ICON_SIZE)


any hints?

-- 
Erik Grinaker
http://erikg.wired-networks.net

This signature has been rot13-encrypted twice, reading it is illegal
under the terms of the DMCA.

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to