[dots/remove-assistant: 8/38] Enable saving after a document is opened
- From: Fernando Herrera de las Heras <fherrera src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots/remove-assistant: 8/38] Enable saving after a document is opened
- Date: Thu, 15 Jul 2010 21:07:39 +0000 (UTC)
commit 014a394972928d127f70658fbb6f2803ea0ab796
Author: Fernando Herrera <fherrera onirica com>
Date: Thu Jul 8 18:22:27 2010 +0200
Enable saving after a document is opened
dots/app_window.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/dots/app_window.py b/dots/app_window.py
index af67521..60571a8 100644
--- a/dots/app_window.py
+++ b/dots/app_window.py
@@ -181,10 +181,12 @@ class AppWindow(object):
filename = chooser.get_filename()
chooser.destroy()
if response == gtk.RESPONSE_OK:
- print chooser.get_filename()
document = document_new (filename)
self.translate (document, self.config_builder)
-
+ action = self.main_xml.get_object('action_save_as')
+ action.set_sensitive(True)
+ action = self.main_xml.get_object('action_save')
+ action.set_sensitive(True)
def _OnBrailleViewToggle(self, ascii_item):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]