On 12/16/2011 05:24 PM, jjacky wrote:
> 
> Thanks, I do need to do some more reading on the gobject docs, great 
> stuff there.
> 
> What I'm looking for is inheritance, and I see how it could be done yes. 
> However, that would require the original widget to be done using virtual 
> public methods, and I'm afraid this isn't the case unfortunately...

Hmm, yes.  That's what I read in Mr. Nečas's post.  Unfortunate.  Though
as he said if only you are going to be using this new widget you can
just make new static methods and use them instead.  Polymorphism only
comes into play when you want to call the base class method on your
derived class.  In other words unless you're interacting with existing
code (binary or source) that is expecting the GtkCalendar class objects,
you can call gtk_mycalendar_*() methods instead of gtk_calendar_*() methods.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to