Re: Gtk-CRITICAL gtkbin.c: line 217

From: Date: Fri, 14 Jun 2002 14:00:19 +0000
Subject: Re: Gtk-CRITICAL gtkbin.c: line 217
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2125@lists.php.net to get a copy of this message
Rich, That is the issue that's confusing me. $box isn't global, but the window is still treating it like it's there when I return to the function. This is an overview of the program. This is a reservations program. Our reservations staff uses it to take reservations. We purchase lists and mail to them invitations. This specific part is that if we don't have a matching phone number in our database for the person that reserves, this window comes up and shows every possible match for that person reserving. It is only called when we don't have a phone number match. So after it's used every time I hide the window. The window is the only global part. I assumed since the rest weren't global, they would drop out when the window is hidden? If I declare the box globally, then destroy it, I can't create it again and have it still have the global scope. It either has to be removed and recreated, or I have to be able to reset the widgets inside it. I could declare every widget globally except for the gtkTable, because that varies in size depending on how many possibilities there are. So if I did everything but the table, the insert on the scrolled window would have the can't insert wouldn't it? Many thanks for all the ideas, Miles On Fri, 2002-06-14 at 09:45, Rich Payne wrote: On 14 Jun 2002, Miles Phillips wrote: > First off thanks for the suggestions all. Not seeming to have much luck > with this one though. > I think I'm just lacking some fundamental knowledge that I maybe should > have on doing this. I'm going to just paste the effected code in here, > and let anyone who's willing to hack away at it. > I've tried the remove, not sure of syntax, but I think this is right, > right before the $box=&new gtkVbox line... > $wdwMatch->remove($box) Where was $box created? You've haven't defined that as Global (as far as I can tell) so $box is a null. > It says remove expects 1 argument but null is given. > If I use $wdwMatch->$box->destroy() it says Fatal Error: Class > 'GtkWindow' does not support overloaded method calls. IIRC, the zend engine can't handle that. You'll need a $wdwMatch_box = $wdwMatch->box; $wdwMatch_box->destroy(); but again, I don't see where $box was originally created. --rdp

« previous php.gtk.general (#2125) next »