summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Gautier <mgautier@fedoraproject.org>2009-05-11 00:12:44 +0200
committerMatthieu Gautier <mgautier@fedoraproject.org>2009-05-11 00:12:44 +0200
commit371fe890b013185e7c07580f993a8f76f2b37c97 (patch)
treee8cd6a259902a4a10ce9f86637cd4b2bf4676acd
parent70b12fe9f6918128b9cffc126ccbe8e0eb61ef35 (diff)
downloadg-ed-it-master.zip
g-ed-it-master.tar.gz
g-ed-it-master.tar.xz
remove fast_update_uiHEADmaster
-rw-r--r--g-ed-it/__init__.py3
-rw-r--r--g-ed-it/commitDialog.py5
-rw-r--r--g-ed-it/windowHelper.py3
3 files changed, 4 insertions, 7 deletions
diff --git a/g-ed-it/__init__.py b/g-ed-it/__init__.py
index 4c92814..970b974 100644
--- a/g-ed-it/__init__.py
+++ b/g-ed-it/__init__.py
@@ -41,7 +41,4 @@ class G_ed_it(gedit.Plugin):
def update_ui(self, window):
self.windowHelpers[window].update_ui()
- def fast_update_ui(self):
- for windowHelper in self.windowHelpers :
- self.windowHelpers[windowHelper].fast_update_ui()
diff --git a/g-ed-it/commitDialog.py b/g-ed-it/commitDialog.py
index 668a5c0..a21445a 100644
--- a/g-ed-it/commitDialog.py
+++ b/g-ed-it/commitDialog.py
@@ -46,6 +46,7 @@ class CommitDialog (object):
def run(self,window,fileURI, allFile):
self.commit_dialog.set_transient_for(window)
+ self.current_window = window
self.cwd = os.path.dirname(fileURI)
if allFile:
self.fileName = None
@@ -56,6 +57,7 @@ class CommitDialog (object):
def on_cancel_button_clicked(self, close_button):
self.commit_dialog.hide()
+ self.current_window = None
def on_commit_button_clicked(self, close_button):
commit_text_buffer = self.commit_text_box.get_buffer()
@@ -66,7 +68,8 @@ class CommitDialog (object):
subprocess.call('git-commit -m "'+commit_text+'"',stdout=subprocess.PIPE,cwd=self.cwd, shell=True)
commit_text_buffer.set_text("")
self.commit_dialog.hide()
- self.plugin.fast_update_ui()
+ self.current_window.emit("active-tab-state-changed")
+ self.current_window = None
pass
def on_commit_text_changed(self, commit_text_entry):
diff --git a/g-ed-it/windowHelper.py b/g-ed-it/windowHelper.py
index 68f417b..a744f0f 100644
--- a/g-ed-it/windowHelper.py
+++ b/g-ed-it/windowHelper.py
@@ -81,9 +81,6 @@ class WindowHelper:
def update_ui(self):
return
-
- def fast_update_ui(self):
- self.docHelpers[self.window.get_active_document()].update_ui()
def create_actionManager(self):
self.manager = self.window.get_ui_manager()