phpide_Dialog_Generic(dirname(__FILE__)."/password_entry_dialog.glade"); $this->text_entry = $this->widget->get_widget("text_entry"); $this->text_entry->connect("key_press_event", array(&$this,"key_pressed")); } function show($string) { $this->text_entry->set_text(""); $this->text_entry->grab_focus(); $this->__show($string); } function key_pressed($widget,$event) { if ($event->keyval == 65293) if ($this->ok_pressed_callback) call_user_func($this->ok_pressed_callback); } } ?>