Re: [gtk-list] Re: Deriving a new widget from GtkText
- From: Lyndon Drake <lyndon stat auckland ac nz>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Deriving a new widget from GtkText
- Date: Tue, 24 Nov 1998 18:20:32 +1300
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]