[gitg/wip/techlivezh/bug/720726] Run update in the right 'WebView' context



commit 18043d16592a4693264a0e4ba6fb37c5c5f280c7
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]