Thank you don570 and nathan. signal="activate" works great.
I do a little trick here. I make a function mlaku that run the application that writed in the first item of tree (by read a < ketemu). Ya, although the clicked effect doesn't appear in the tree. Please correct me.
Code: Select all
#!/bin/sh
ls /usr/share/applications > aplikasiku
luru(){
cat aplikasiku | grep -i $Entriku > ketemu
cat ketemu | sed 's/.desktop//' > ditampilkan
}
export -f luru
mlaku(){
read a < ketemu
$(cat /usr/share/applications/$a | grep Exec | cut -d "=" -f2)&
}
export -f mlaku
export auto='
<window height-request="400" width-request="200">
<vbox>
<entry>
<variable>Entriku</variable>
<label>search application here</label>
<action>luru</action>
<action>refresh:Wit</action>
<action signal="activate">mlaku</action>
</entry>
<tree rules-hint="true" headers-visible="false" activates-default="true" hover-selection="true">
<variable>Wit</variable>
<input file>ditampilkan</input>
<action>exec $Wit</action>
</tree>
</vbox>
</window>'
gtkdialog --program=auto --center