Re: a few questions
| From: | Steph | Date: | Fri, 08 Feb 2002 14:24:02 +0000 |
| Subject: | Re: a few questions | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1205@lists.php.net to get a copy of this message | ||
- the advantage of splitting the callback into smaller chunks is that, if it's still taking too
long to get the button and statusbar displaying as they should for whatever reason, you can give
them a bit more time by putting gtk::timeout_add(100, 'callback2'); instead of just
calling the second function directly (the int is the number of milliseconds). Or you could test the
button's state property before moving on. Although I agree that it shouldn't be
necessary, the fact that the button 'stays in' means that your search process is beginning
too early, and it's causing a mile-long message queue. Evidently the button and statusbar
redraws take low priority.
You could also try connecting 'clicked' to the part that deals with redrawing and
'released' to the part that deals with the processing, although I doubt that would give
the windowing system long enough to process the redraws.
- the advantage of using freeze() and thaw() is that it stops your monitor flickering because
it's only having to draw the text once per update instead of x amount of times.
----- Original Message -----
From: "Moritz Post" <MoritzPost@gmx.de>
To: "Steph" <steph.fox@btinternet.com>
Cc: <php-gtk-general@lists.php.net>
Sent: Friday, February 08, 2002 1:32 PM
Subject: Re: [PHP-GTK] a few questions
> > You're supposed to freeze() anything over 1024 bytes.
>
> what do you mean by that ? what is freeze() and thaw() doing? the man
> doesn't say.
> the split up into three functions won't help i guess...
>
> greets moritz
>
> > ----- Original Message -----
> > From: "Moritz Post" <MoritzPost@gmx.de>
> > To: <php-gtk-general@lists.php.net>
> > Sent: Friday, February 08, 2002 1:25 PM
> > Subject: Re: [PHP-GTK] a few questions
> >
> >
> > > > Does it help any if you freeze() then thaw() the clist for the
> > period of
> > > > the update, to get the processing time down on that?
> > >
> > > the problem is not, that the populating of the list takes long. the
> > problem
> > > is, that the hole window does not react while the script is in the
> > signal
> > > function... i can still send output to the console so i can see that
> > it is not
> > > the lists fault.. even a 1000 entrys are thre immediatly.
> > >
> > > moritz
> > >
> > > --
> > > GMX - Die Kommunikationsplattform im Internet.
> > > http://www.gmx.net
> > >
> > >
> > > --
> > > PHP-GTK General Mailing List (http://gtk.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>