Fix scrolling functionality
[WebThing.git] / plugins / LoadProgress.cs
index 08ffbf6..d635573 100644 (file)
@@ -52,7 +52,7 @@ public class LoadThrobber : Gtk.DrawingArea {
 
     void WebView_LoadStarted(object o, LoadStartedArgs e) {
         this.Show();
-        Console.WriteLine("Loading Started");
+        //Console.WriteLine("Loading Started");
         LoadState = Mode.LoadStarted;
         idletimer = GLib.Timeout.Add(100, delegate {
             QueueDraw();
@@ -61,7 +61,7 @@ public class LoadThrobber : Gtk.DrawingArea {
     }
 
     void WebView_LoadCommitted(object o, LoadCommittedArgs e) {
-        Console.WriteLine("Loading Committed");
+        //Console.WriteLine("Loading Committed");
         LoadState = Mode.LoadInProgress;
         GLib.Source.Remove(idletimer);
         r = 0;
@@ -69,13 +69,13 @@ public class LoadThrobber : Gtk.DrawingArea {
     }
 
     void WebView_LoadProgressChanged(object o, LoadProgressChangedArgs e) {
-        Console.WriteLine("Loading Progress: {0}", e.Progress);
+        //Console.WriteLine("Loading Progress: {0}", e.Progress);
         r = (int) ((e.Progress / 100.0) * 360);
         QueueDraw();
     }
 
     void WebView_LoadFinished(object o, LoadFinishedArgs e) {
-        Console.WriteLine("Loading Finished");
+        //Console.WriteLine("Loading Finished");
         LoadState = Mode.LoadFinished;
         this.Hide();
     }
@@ -86,7 +86,7 @@ public class LoadThrobberPlugin : WebThingPlugin {
 
     public override void Init(WebThing wt) {
         lt = new LoadThrobber(wt);
-        wt.AttachWidget(lt, CompassDirection.Interior);
+        wt.AttachWidget(lt, AttachPoint.Interior);
     }
 
     public override void InitWebView(WebView wv) {