[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Object Orientation in GTK
- From: exp120 physik uni-kiel de (R. Bock)
- To: gtk-app-devel-list redhat com
- Subject: Re: Object Orientation in GTK
- Date: Sun, 8 Nov 1998 12:59:56 +0100 (MET)
Hi!
Most widgets and signal handlers can hold additional information which may
be used by your functions. It is usually a gpointer called user_data. You
can put all the information you need into that pointer (maybe using structs).
This should be sufficient to avoid global variables.
Greetings,
Roland Bock
>
> Hi. I'm new to GTK, and X windows programming in general, although I've
> done GUI work before.
>
> Anyway, I've been developing an application using GTK. I've gotten all
> the widgets to work and all. My problem is this --
>
> GTK is (in theory) object oriented.
>
> On the other hand, it seems to encourage the use of global variables.
> In many instances, I see no way of avoiding global variables.
>
> This seems to be in direct conflict. Am I wrong? I think I am missing
> the basic methodology here.
>
>
> Could someone point me to a program which is a GOOD example of GTK
> programming?
>
> Thanks
>
> Matt
>
>
> --
> To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
> Mailing list concerns should be mailed to <listmaster@redhat.com>
>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]