[10355] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Deriving a new widget from GtkText
daemon@ATHENA.MIT.EDU (Lyndon Drake)
Tue Nov 24 00:20:43 1998
Date: Tue, 24 Nov 1998 18:20:32 +1300
From: Lyndon Drake <lyndon@stat.auckland.ac.nz>
To: gtk-list@redhat.com
In-Reply-To: <Pine.GSO.3.95.981123231456.16355W-100000@harper.uchicago.edu>; from Havoc Pennington on Mon, Nov 23, 1998 at 11:16:06PM -0600
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
On Mon, Nov 23, 1998 at 11:16:06PM -0600, Havoc Pennington wrote:
>
> On Tue, 24 Nov 1998, Lyndon Drake wrote:
> > I want to write a widget that is very similar to GtkText. Presumably
> > the best way to do this is to derive it from GtkText. My main question
> > is, is it possible to override some of GtkText's methods, while letting
> > GtkText handle the functions that don't interest me?
>
> Yes, but you have to understand Gtk's object system, which can be a fun
> time. Read about creating widgets in the tutorial.
>
> You can also use Gtk-- and override the _impl functions.
>
Thanks. Unfortunately we are restricted to straight C for R. I'll reread
the tutorial stuff.
Lyndon
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null