[Monodevelop-patches-list] r2538 - in trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets: . FileBrowser IconView TabLabel
Lluis Sanchez <lluis@ximian.com>
lluis at mono-cvs.ximian.com
Sun May 15 17:31:15 EDT 2005
Author: lluis
Date: 2005-05-15 17:31:15 -0400 (Sun, 15 May 2005)
New Revision: 2538
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/IconView/IconView.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/TabLabel/TabLabel.cs
Log:
2005-05-15 Lluis Sanchez Gual <lluis at novell.com>
* FileBrowser/FileBrowser.cs: Catch UnauthorizedAccessException errors.
* IconView/IconView.cs: Add a shadow to the icon view.
* TabLabel/TabLabel.cs: Added IntPtr constructor to make gtk# happy.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/ChangeLog 2005-05-15 21:30:37 UTC (rev 2537)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/ChangeLog 2005-05-15 21:31:15 UTC (rev 2538)
@@ -1,3 +1,9 @@
+2005-05-15 Lluis Sanchez Gual <lluis at novell.com>
+
+ * FileBrowser/FileBrowser.cs: Catch UnauthorizedAccessException errors.
+ * IconView/IconView.cs: Add a shadow to the icon view.
+ * TabLabel/TabLabel.cs: Added IntPtr constructor to make gtk# happy.
+
2005-05-08 John Luke <john.luke at gmail.com>
* Tree/TreeView.cs: use DefaultSortFunc property instead
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs 2005-05-15 21:30:37 UTC (rev 2537)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs 2005-05-15 21:31:15 UTC (rev 2538)
@@ -426,16 +426,22 @@
{
hiddenfolders.Clear ();
- if (System.IO.File.Exists (CurrentDir + System.IO.Path.DirectorySeparatorChar + ".hidden"))
- {
- using (StreamReader stream = new StreamReader (System.IO.Path.Combine (CurrentDir, ".hidden"))) {
- string foldertohide;
- while ((foldertohide = stream.ReadLine ()) != null) {
- hiddenfolders.Add (foldertohide);
- foldertohide = stream.ReadLine ();
+ try {
+ if (System.IO.File.Exists (CurrentDir + System.IO.Path.DirectorySeparatorChar + ".hidden"))
+ {
+ using (StreamReader stream = new StreamReader (System.IO.Path.Combine (CurrentDir, ".hidden"))) {
+ string foldertohide;
+ while ((foldertohide = stream.ReadLine ()) != null) {
+ hiddenfolders.Add (foldertohide);
+ foldertohide = stream.ReadLine ();
+ }
}
}
- }
+ } catch (UnauthorizedAccessException){
+ // Ignore
+ } catch (Exception ex) {
+ Console.WriteLine (ex);
+ }
}
private bool NotHidden (string folder)
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/IconView/IconView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/IconView/IconView.cs 2005-05-15 21:30:37 UTC (rev 2537)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/IconView/IconView.cs 2005-05-15 21:31:15 UTC (rev 2538)
@@ -25,6 +25,7 @@
this.Add (iconList);
this.WidthRequest = 350;
this.HeightRequest = 200;
+ this.ShadowType = Gtk.ShadowType.In;
}
public void AddIcon (Image icon, string name, object obj)
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/TabLabel/TabLabel.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/TabLabel/TabLabel.cs 2005-05-15 21:30:37 UTC (rev 2537)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Gui.Widgets/TabLabel/TabLabel.cs 2005-05-15 21:31:15 UTC (rev 2538)
@@ -16,6 +16,10 @@
private Gtk.Image icon;
private Button btn;
+ protected TabLabel (IntPtr p): base (p)
+ {
+ }
+
public TabLabel (Label label, Gtk.Image icon) : base (false, 2)
{
this.icon = icon;
More information about the Monodevelop-patches-list
mailing list