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



commit 0d7d35833f6cdc8f70332bdfb3c1355346c167d6
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 d01241c..992e8b6 100644
--- a/libgitg/gitg-diff-view.vala
+++ b/libgitg/gitg-diff-view.vala
@@ -267,7 +267,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]