Untitled
public text v1 · immutable// CC_Window mod
$this->connect_simple_after('delete-event', array($this, 'on_state_save'));
// CC_Main mod
public function on_quit()
{
$dialog = new CC_Message('Are you sure you want to quit?', 'Exit...',
CC_Message::QUESTION, CC::$program);
if ($dialog->run() == Gtk::RESPONSE_YES)
{
$this->on_state_save();
$this->destroy();
return false;
}
else
{
$dialog->destroy();
return true;
}
}