[Monodevelop-patches-list] r1192 - in trunk/MonoDevelop: . src/Main/Base/Gui/Pads/HelpBrowser
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Mar 18 22:11:55 EST 2004
Author: jluke
Date: 2004-03-18 22:11:55 -0500 (Thu, 18 Mar 2004)
New Revision: 1192
Modified:
trunk/MonoDevelop/ChangeLog
trunk/MonoDevelop/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs
Log:
* src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs:
implement OnUrl event to show Urls in statusbar
Modified: trunk/MonoDevelop/ChangeLog
===================================================================
--- trunk/MonoDevelop/ChangeLog 2004-03-19 01:49:56 UTC (rev 1191)
+++ trunk/MonoDevelop/ChangeLog 2004-03-19 03:11:55 UTC (rev 1192)
@@ -1,3 +1,8 @@
+2004-03-18 John Luke <jluke at cfl.rr.com>
+
+ * src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs:
+ implement OnUrl event to show Urls in statusbar
+
2004-03-18 Gustavo Giráldez <gustavo.giraldez at gmx.net>
* src/Main/Base/Gui/IWorkbench.cs: Added WorkbenchContext enum,
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs 2004-03-19 01:49:56 UTC (rev 1191)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs 2004-03-19 03:11:55 UTC (rev 1192)
@@ -20,6 +20,7 @@
ScrolledWindow scroller = new ScrolledWindow ();
MonodocService mds;
+ IStatusBarService statusBarService = (IStatusBarService) MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IStatusBarService));
public override Gtk.Widget Control {
get { return scroller; }
@@ -31,14 +32,22 @@
public HelpViewer ()
{
-
mds = (MonodocService)ServiceManager.Services.GetService (typeof (MonodocService));
- html_viewer.LinkClicked += new LinkClickedHandler (LinkClicked);
- html_viewer.UrlRequested += new UrlRequestedHandler (UrlRequested);
+ html_viewer.LinkClicked += new LinkClickedHandler (LinkClicked);
+ html_viewer.UrlRequested += new UrlRequestedHandler (UrlRequested);
+ html_viewer.OnUrl += new OnUrlHandler (OnUrl);
scroller.Add (html_viewer);
}
+ void OnUrl (object sender, OnUrlArgs args)
+ {
+ if (args.Url == null)
+ statusBarService.SetMessage ("");
+ else
+ statusBarService.SetMessage (args.Url);
+ }
+
void UrlRequested (object sender, UrlRequestedArgs args)
{
Console.WriteLine ("Image requested: " + args.Url);
More information about the Monodevelop-patches-list
mailing list