[Monodevelop-patches-list] r1899 - in trunk/MonoDevelop/Core/src/Main/Base: . Gui/Pads/HelpBrowser
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Jul 5 16:00:30 EDT 2004
Author: tberman
Date: 2004-07-05 16:00:30 -0400 (Mon, 05 Jul 2004)
New Revision: 1899
Modified:
trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
trunk/MonoDevelop/Core/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs
Log:
fix images in the help browser.
Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-07-05 19:19:48 UTC (rev 1898)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-07-05 20:00:30 UTC (rev 1899)
@@ -1,5 +1,9 @@
2004-07-05 Todd Berman <tberman at off.net>
+ * Gui/Pads/HelpBrowser/HelpViewer.cs: enable images in monodoc.
+
+2004-07-05 Todd Berman <tberman at off.net>
+
* Internal/Codons/MenuItems/MenuItemCodon.cs: allow menuitems with
a submenu to be translated properly.
Modified: trunk/MonoDevelop/Core/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs 2004-07-05 19:19:48 UTC (rev 1898)
+++ trunk/MonoDevelop/Core/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs 2004-07-05 20:00:30 UTC (rev 1899)
@@ -57,14 +57,13 @@
Console.WriteLine ("Image requested: " + args.Url);
Stream s = mds.HelpTree.GetImage (args.Url);
- /*if (s == null)
- s = GetResourceImage ("monodoc.png");
+ if (s != null) {
byte [] buffer = new byte [8192];
int n;
- while ((n = s.Read (buffer, 0, 8192)) != 0) {
- args.Handle.Write (buffer, n);
- }*/
+ while ((n = s.Read (buffer, 0, 8192)) != 0)
+ args.Handle.Write (buffer, n);
+ }
args.Handle.Close (HTMLStreamStatus.Ok);
}
More information about the Monodevelop-patches-list
mailing list