Revision
77
Author
leonpegg
Date
2006-12-20 07:45:25 -0800 (Wed, 20 Dec 2006)

Log Message

main.class.php CC_Main::on_quit now changed to return true false

Modified Paths

Diff

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;
 	}
 
 	/**