Re: [gtk-list] Accessing methods of parent objects?



Kyle B Ferrio writes:
 ...
 > 
 > Can someone help me out here?  Let's make up a specific example: Suppose
 > we want to derive a new class called DTable from GtkTable.  And let
 > dtable be a new instance of DTable.  Now we need to "attach" some
 > children to dtable by calling the gtk_table_attach methods in the 
 > GtkTable (parent) class.  How do we do this?
 > 

This may not be true (I am still learning GTK+) but if you derive
DTable from GtkTable, can't you just use all of GtkTable's functions
with a cast?  So if someone wants to attach a child to a DTable they
just call:

	gtk_table_attach(GTK_TABLE(dtable),child,....);

Or do I misunderstand the problem?

-Brett.



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