summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Gautier <mgautier@fedoraproject.org>2009-05-04 18:52:28 +0200
committerMatthieu Gautier <mgautier@fedoraproject.org>2009-05-04 18:55:17 +0200
commitb720af68f07507c1149baeb5dfddb5057a29dcdc (patch)
treecf28d10fd746dbc811411d13ec3242be43cd215d
parent37e613ff2b5b71228d158a3e8455d80f3b019622 (diff)
downloadg-ed-it-b720af68f07507c1149baeb5dfddb5057a29dcdc.zip
g-ed-it-b720af68f07507c1149baeb5dfddb5057a29dcdc.tar.gz
g-ed-it-b720af68f07507c1149baeb5dfddb5057a29dcdc.tar.xz
Solve unecessary call to update_ui()
-rw-r--r--g-ed-it/docHelper.py11
-rw-r--r--g-ed-it/windowHelper.py2
2 files changed, 0 insertions, 13 deletions
diff --git a/g-ed-it/docHelper.py b/g-ed-it/docHelper.py
index 043be86..cee5103 100644
--- a/g-ed-it/docHelper.py
+++ b/g-ed-it/docHelper.py
@@ -33,22 +33,11 @@ class DocHelper (object):
self.tab.set_data(self.KEY,self)
self.getDocState()
-
- self.update_handler1 = self.doc.connect("saved",self.doc_changed)
- self.update_handler2 = self.doc.connect("loaded",self.doc_changed)
pass
def deactivate(self):
- self.doc.disconnect(self.update_handler1)
- self.doc.disconnect(self.update_handler2)
self.tab.set_data(self.KEY,self)
- def update_ui(self):
- self.getDocState()
-
- def doc_changed(self,doc,arg1):
- self.getDocState()
-
def getDocState(self):
uri = self.doc.get_uri_for_display()
cwd = os.path.dirname(uri)
diff --git a/g-ed-it/windowHelper.py b/g-ed-it/windowHelper.py
index 4cf4d3c..68f417b 100644
--- a/g-ed-it/windowHelper.py
+++ b/g-ed-it/windowHelper.py
@@ -80,8 +80,6 @@ class WindowHelper:
self.gitAction = None
def update_ui(self):
- for docHelper in self.docHelpers:
- self.docHelpers[docHelper].update_ui()
return
def fast_update_ui(self):