On Tue, 2006-04-11 at 19:35 +0200, Andreas Kotowicz wrote: > I created a composite widget which consists of two frames, one of which > holds a calendar and a second one which has some buttons. I now ask > myself what is the right parent class to choose from. Is it GtkFrame? > Why can't I just choose GtkWidget? are there any rules which classes to > choose from for composite widgets? (I know, the tutorial says you should > use the class which is most similar but that's now very precise).
I don't know a lot about gtk inheritance, and I have been spoiled by python's extensive use of multiple inheritance, but I think the answer to your question may lie in asking whether your new widget is something or contains something. IE is your widget a frame? Or is it a widget that contains frames. If I were you I'd inherit from GtkVBox. Then have two frames as members and place them in the vbox (which is already a container). Michael > > cheers, > Andreas > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list