Re: button not reappearing
- From: Ross McFarland <rwmcfa1 neces com>
- To: Chris Phillips <chris thirtythreeandathird net>
- Cc: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: button not reappearing
- Date: 07 Aug 2003 07:53:27 -0400
On Thu, 2003-08-07 at 07:21, Chris Phillips wrote:
Hi hi,
I've got an issue that i can't quite track down where i am hiding and re-showing
a button each time it's pressed. The button adds a control panel which is used
to hide itself, so the "show" button is wanted to dissapear when it is shown...
but i hide the button "$button->set_visibility(0)" fine, and bring it back with
"$button->set_visibility(1)" but the strange thing is that the space for the
button is reallocated, but the button itself doesn't reappear until the mousee
moves over it (presuambly this is triggering a mouseover event which makes it
redraw?) so why does the button not instantly reappear??
what kind of event handler is the $button->set_visibility(1) call being
made in? check that you have the correct return behavior for this type
of callback, not doing so can cause unpredictable things to happen.
if that isn't it, then try this. it is not really a solution, but
something to try to see if it fixes things in hopes of narrowing down
the problem, try placing:
while( Gtk2->events_pending )
{
Gtk2->main_iteration;
}
immediately after the call where you set_visibility(1).
i have done things very similar to what you seem to be trying to do in
apps with Gtk2-Perl before and things worked fine so without more
information and/or seeing the relevant code that's about the best
guesses i have.
-rm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]