[meld] vcview: Delay refresh until outside of the scheduler task (bgo#753952)
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] vcview: Delay refresh until outside of the scheduler task (bgo#753952)
- Date: Sat, 3 Oct 2015 22:59:44 +0000 (UTC)
commit ce43ef89dcc7bc83dadc73d0795573992bd7f139
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Oct 4 08:52:27 2015 +1000
vcview: Delay refresh until outside of the scheduler task (bgo#753952)
meld/vcview.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index 655c6b5..3146f26 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -19,6 +19,7 @@
from __future__ import print_function
import atexit
+import functools
import logging
import tempfile
import shutil
@@ -589,7 +590,8 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
self.console_vbox.show()
if refresh:
- self.refresh_partial(working_dir)
+ refresh = functools.partial(self.refresh_partial, working_dir)
+ GLib.idle_add(refresh)
def has_command(self, command):
vc_command = self.command_map.get(command)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]