Re: a few questions
| From: | Moritz Post | Date: | Fri, 08 Feb 2002 12:52:30 +0000 |
| Subject: | Re: a few questions | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1197@lists.php.net to get a copy of this message | ||
> 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