Modified: desktop/trunk/lib/main.class.php (76 => 77)
--- desktop/trunk/lib/main.class.php 2006-12-20 13:51:54 UTC (rev 76)
+++ desktop/trunk/lib/main.class.php 2006-12-20 15:45:25 UTC (rev 77)
@@ -133,7 +133,8 @@
$vbox->pack_end($this->statusbar, false, false);
$this->add($vbox);
- $this->connect_simple('destroy', array('Gtk', 'main_quit'));
+ $this->connect_simple('destroy',array('gtk','main_quit'));
+ $this->connect_simple('delete-event', array($this, 'on_quit'));
return;
}
@@ -307,13 +308,13 @@
{
$this->on_state_save();
$this->destroy();
- return FALSE; // stop event propogation
+ return false; // stop event propogation
}
else
{
$dialog->destroy();
+ return true;
}
- return;
}
/**