Re: GTK2.TreeView()->set_model() does not work as expected

Lance Dillon <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
So then it gets the actual object type, rather than the interface type.  Makes more sense.



On Monday, October 20, 2014 1:30 PM, "Per Hedbor () @ Pike (-) importmöte för mailinglistan" <[email protected]> wrote:
 


> It probably doesn't work with get_gobject() is because GtkTreeModel
> is an interface, not an object, therefore you can't actually have an
> instance of a tree model.  I think you therefore have to explicitly
> call get_pg2object() with it's type, because it can't figure out
> what type it is.

Actually, get_gobject is the one that works, supplying the actual
class is what seems to fail.


-- 
Per Hedbor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.