Re: getting text
- From: Bart Vandewoestyne <Bart Vandewoestyne pandora be>
- To: gtk-app-devel-list gnome org
- Subject: Re: getting text
- Date: Sun, 27 Jul 2003 01:08:39 +0200
Ian Bell wrote:
...
http://mc303.studentenweb.org/downloads/mms_gui.c
> ...
Code seems eminently readable to me. Your problem stems from the fact that
the pointers to the text entry widgets are 'lost' in the nice tidy
subroutines in which you create them. You need these to access the text.
Okay, after leaving my problem alone for a couple of hours, and getting
back to it this evening, i solved my problem within 10 seconds by making
those text entry widgets global (see updated code at URL above).
As I am trying to write clean and profound code, i just would like to
ask if this is a quite often used technique for solving this kind of
problems (i have always been taught that global vars are *bad*). If
not, then what is the 'clean' technique to solve my problem?
Greetzzz,
Bart
--
Bart Vandewoestyne Bart.Vandewoestyne_at_pandora.be
Hugo Verrieststraat 48 GSM: +32 (0)478 397 697
B-8550 Zwevegem http://users.pandora.be/vandewoestyne
----------------------------------------------------------------------
"Any fool can know, the point is to understand." - Albert Einstein
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]