[gitg/wip/techlivezh/fix-720726: 3/3] Run update in the right 'WebView' context



commit 2a0e6864aca16ba67eaa8fbd0794ed169afa9dcc
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Tue Dec 10 18:11:26 2013 +0800

    Run update in the right 'WebView' context
    
    Fix the bizzard error 'ReferenceError: Can't find variable: update_diff'
    rised by WebView.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720726

 libgitg/gitg-diff-view.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgitg/gitg-diff-view.vala b/libgitg/gitg-diff-view.vala
index 1db62c2..dc437f4 100644
--- a/libgitg/gitg-diff-view.vala
+++ b/libgitg/gitg-diff-view.vala
@@ -265,7 +265,7 @@ namespace Gitg
                                if (ev == WebKit.LoadEvent.FINISHED)
                                {
                                        d_loaded = true;
-                                       update();
+                                       (v as Gitg.DiffView).update();
                                }
                        });
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]