Re: Basic coding question (probably) - SOLVED
| From: | Steph | Date: | Sat, 23 Mar 2002 03:33:31 +0000 |
| Subject: | Re: Basic coding question (probably) - SOLVED | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1625@lists.php.net to get a copy of this message | ||
Oooh, send code! ;)
destroying and recreating the box sounds a bit extreme, wouldn't you be able to use
queue_draw() to refresh it?
----- Original Message -----
From: "Roberto Villarreal" <roberto.villarreal@funktiontech.com>
To: "Steph" <steph.fox@btinternet.com>; "PHP-GTK gen"
<php-gtk-general@lists.php.net>
Sent: Saturday, March 23, 2002 1:24 AM
Subject: Re: [PHP-GTK] Basic coding question (probably) - SOLVED
> Steph (or anyone who can help)...
>
> Could you post your hack here please or do you have an URL where I can check
> it out?
>
> My problem is... I have three entry with the signal key-press-event
> connected to them, their callback function is the same... This callback
> function runs an SQL query (WHERE data1 like '.$entry1->get_Text().'%' and
> data2 like '.$entry2->get_text().'%' and data3 like
> '.$entry3->get_text().'%'), destroys the existent box and creates another
> one. It is supposed to refresh that box where the results are displayed, but
> i realized that i need to reconnect (or disconnect and connect again) all
> the entry's signals to tell them that the orginal box has been destroyed and
> created a new box...
>
> Do you know how can i do this?
>
> If you need more explanations about this, please email me and i'll send you
> my code.
>
> Thank you since now.
>
> Roberto Villarreal
>
>
> ----- Original Message -----
> From: "Steph" <Steph.Fox@btinternet.com>
> To: "PHP-GTK gen" <php-gtk-general@lists.php.net>
> Sent: Friday, March 22, 2002 10:48 AM
> Subject: Fw: [PHP-GTK] Basic coding question (probably) - SOLVED
>
>
> > OK, I made a klutzy hack and it works. But there ought to be an easier
> way!!!
> >
> > For future reference, you can't directly put the connection ids into an
> array ('scalar values') so you have to generate them yourself ahead of time
> and then pass the resulting array back to the init function.
> >
> > ----- Original Message -----
> > From: "Steph" <Steph.Fox@btinternet.com>
> > To: "PHP-GTK gen" <php-gtk-general@lists.php.net>
> > Sent: Thursday, March 21, 2002 10:32 PM
> > Subject: [PHP-GTK] Basic coding question (probably)
> >
> >
> > I'm connecting multiple signals to a button on the fly during a loop
> within a function, which is probably all wrong in the first place but
> appears unavoidable.
> >
> > On the second pass the button regurgitates all the connections it made the
> first time through, as well as the new set. And the third, ad infinitum ad
> nauseum.
> >
> > Short of destroying and creating a fresh button (very ugly), I'm currently
> stuck with disconnecting everything with a lower value than the current
> handler id - woo, loads of pretty err msgs. Does anyone know of a way I can
> collect the used handler ids ready to disconnect them at the beginning of
> the next pass? Or better, a way to identify used handler ids belonging to
> an object?
> >
> > Script available if anyone's desperate to get a screenful of
> > Gtk-WARNING **: gtk_signal_disconnect(): could not find handler (n)
> >
> >
> >
> > --
> > 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
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>