seed r212 - trunk/examples/ide
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r212 - trunk/examples/ide
- Date: Sat, 8 Nov 2008 08:07:19 +0000 (UTC)
Author: hortont
Date: Sat Nov 8 08:07:19 2008
New Revision: 212
URL: http://svn.gnome.org/viewvc/seed?rev=212&view=rev
Log:
Fix IDE so that we don't die when executing a read only file.
Modified:
trunk/examples/ide/ide-actions.js
Modified: trunk/examples/ide/ide-actions.js
==============================================================================
--- trunk/examples/ide/ide-actions.js (original)
+++ trunk/examples/ide/ide-actions.js Sat Nov 8 08:07:19 2008
@@ -74,7 +74,14 @@
if(current_tab.source_view.filename == "")
save_file();
- Gio.simple_write(current_tab.source_view.filename, current_tab.source_view.get_buffer().text);
+ try
+ {
+ Gio.simple_write(current_tab.source_view.filename, current_tab.source_view.get_buffer().text);
+ }
+ catch(e)
+ {
+ Seed.print(e.name + " " + e.message); // TODO: popup
+ }
current_tab.terminal.reset(true, true);
current_tab.terminal.fork_command("/bin/dash");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]