projects
/
WebThing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Focus startup WebView
[WebThing.git]
/
plugins
/
LoadProgress.cs
diff --git
a/plugins/LoadProgress.cs
b/plugins/LoadProgress.cs
index
08ffbf6
..
d635573
100644
(file)
--- a/
plugins/LoadProgress.cs
+++ b/
plugins/LoadProgress.cs
@@
-52,7
+52,7
@@
public class LoadThrobber : Gtk.DrawingArea {
void WebView_LoadStarted(object o, LoadStartedArgs e) {
this.Show();
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();
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) {
}
void WebView_LoadCommitted(object o, LoadCommittedArgs e) {
- Console.WriteLine("Loading Committed");
+
//
Console.WriteLine("Loading Committed");
LoadState = Mode.LoadInProgress;
GLib.Source.Remove(idletimer);
r = 0;
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) {
}
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) {
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();
}
LoadState = Mode.LoadFinished;
this.Hide();
}
@@
-86,7
+86,7
@@
public class LoadThrobberPlugin : WebThingPlugin {
public override void Init(WebThing wt) {
lt = new LoadThrobber(wt);
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) {
}
public override void InitWebView(WebView wv) {