Re: Interface instance == Object instance?



murrayc t-online de (Murray Cumming) writes:

> GtkTreeStore inherits from GObject and implements the GtkTreeModel
> interface
> 
> If I have a GtkTreeStore instance treestore, 
> GtkTreeStore* treestore = gtk_tree_store_new( ... );
> 
> will
> GTK_TREE_MODEL(treestore) == G_OBJECT(treestore)

They'll be different types, but the same pointer value.

-Jonathan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]