hi,
i got three buttons set its sensitivity to false(so buttons are now disabled), i saw already the tutorial on interactive searching...now i want to enable those buttons when row on the tree view is selected..
i got here a sample button..
| Code: |
$button = new GtkButton('Button');
$button->set_sensitive(false);
//Now i got this function, im not sure if its right...hehhe
function on_select(){
//Some codes here for data display after selection
//Output some array
$data = array($id,$fname,$lname....);
//I just check here if selected row is empty or not...
if(!(empty($data[0]))){
$button->set_sensitive(true);
//But get some error like "Undefined function set_sensitive on a non-object on line 123
}
}
|
any help is appreciated...tnx guyz