[10354] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Deriving a new widget from GtkText
daemon@ATHENA.MIT.EDU (Havoc Pennington)
Tue Nov 24 00:17:54 1998
Date: Mon, 23 Nov 1998 23:16:06 -0600 (CST)
From: Havoc Pennington <rhpennin@midway.uchicago.edu>
To: GTK+ list <gtk-list@redhat.com>
In-Reply-To: <19981124171050.A21638@stat.auckland.ac.nz>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
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.
Havoc
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null