Re: a few questions
| From: | Steph | Date: | Fri, 08 Feb 2002 12:58:31 +0000 |
| Subject: | Re: a few questions | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1198@lists.php.net to get a copy of this message | ||
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?
----- Original Message -----
From: "Moritz Post" <MoritzPost@gmx.de>
To: <php-gtk-general@lists.php.net>
Sent: Friday, February 08, 2002 12:52 PM
Subject: Re: [PHP-GTK] a few questions
> > I'd take a long hard look at the code. (Is it 'proper' code, or is it
> > unreadable Glade stuff?)
>
> yes it is glade stuff (and well it shouldn't be bad?)
>
> ok, so here is some sniped stuff
> i put some comments in for you marked with -=>
>
> function on_BtnSearch_clicked(){
> global $SmbSpy, $LSearch, $EdSearch;
>
> -=> here is the text for the statusbar
> $statusbarId = $Statusbar->get_context_id("foo");
> $Statusbar->push($statusbarId, "Scanning Server");
>
> -=> this stuff $SmbSpy->scanServer takes very long
> $searchResult = $SmbSpy->scanServer("parasit2", $EdSearch->get_text());
> $LSearch->clear();
> echo "found ".count($searchResult)." files\n";
>
> for ($i=0; $i<count($searchResult); $i++)
> $LSearch->insert($i, $searchResult[$i]);
> }
>
> $Gw = &new GladeXML("smbspy.glade");
> $Gw->signal_autoconnect();
> GTK::main();
>
> ---------------------------------------
>
> this is the button
>
> <widget>
> <class>GtkButton</class>
> <name>BtnSearch</name>
> <tooltip>Start the search</tooltip>
> <can_focus>True</can_focus>
> <signal>
> <name>clicked</name>
> <handler>on_BtnSearch_clicked</handler>
> <last_modification_time>Thu, 07 Feb 2002 12:46:43
> GMT</last_modification_time>
> </signal>
> <label>Search</label>
> <relief>GTK_RELIEF_NONE</relief>
> <child>
> <padding>0</padding>
> <expand>False</expand>
> <fill>False</fill>
> </child>
> </widget>
>
> well i don't see anything that's wrong here. hope you have more luck
>
> greets 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
>