Re: How to "extend" a widget?
- From: Michael Torrie <torriem gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to "extend" a widget?
- Date: Fri, 16 Dec 2011 22:00:42 -0700
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]