[Monodevelop-patches-list] r2781 - in trunk/MonoDevelop/Core/src/MonoDevelop.Base: . Gui Gui/Dialogs Gui/Pads/ProjectPad
Lluis Sanchez <lluis@ximian.com>
lluis at mono-cvs.ximian.com
Tue Aug 23 12:20:42 EDT 2005
Author: lluis
Date: 2005-08-23 12:20:41 -0400 (Tue, 23 Aug 2005)
New Revision: 2781
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/CommandService.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/CommonAboutDialog.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/ProjectFolder.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/ProjectFolderNodeBuilder.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am
Log:
2005-08-23 Lluis Sanchez Gual <lluis at novell.com>
* Gui/Dialogs/CommonAboutDialog.c: Load the image for the About dialog
from resources.
* Gui/Pads/ProjectPad/ProjectFolderNodeBuilder.cs:
* Gui/Pads/ProjectPad/ProjectFolder.cs: do not subscribe to the
file change events by default. Only do it when the new TrackChanges
property is set to true. This avoids unneeded subscriptions when using
temporary ProjectFolder objects.
* Gui/CommandService.cs: Enable idle toolbar update for the main
command manager.
* Makefile.am: Added about image resource.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-08-23 16:19:31 UTC (rev 2780)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-08-23 16:20:41 UTC (rev 2781)
@@ -1,3 +1,16 @@
+2005-08-23 Lluis Sanchez Gual <lluis at novell.com>
+
+ * Gui/Dialogs/CommonAboutDialog.c: Load the image for the About dialog
+ from resources.
+ * Gui/Pads/ProjectPad/ProjectFolderNodeBuilder.cs:
+ * Gui/Pads/ProjectPad/ProjectFolder.cs: do not subscribe to the
+ file change events by default. Only do it when the new TrackChanges
+ property is set to true. This avoids unneeded subscriptions when using
+ temporary ProjectFolder objects.
+ * Gui/CommandService.cs: Enable idle toolbar update for the main
+ command manager.
+ * Makefile.am: Added about image resource.
+
2005-08-22 Lluis Sanchez Gual <lluis at novell.com>
* Commands/ViewCommands.cs: Implemented delete layout command.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/CommandService.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/CommandService.cs 2005-08-23 16:19:31 UTC (rev 2780)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/CommandService.cs 2005-08-23 16:20:41 UTC (rev 2781)
@@ -50,6 +50,7 @@
manager.RegisterCommand (cmd, null);
manager.CommandError += new CommandErrorHandler (OnCommandError);
+ manager.EnableIdleUpdate = true;
}
public CommandManager CommandManager {
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/CommonAboutDialog.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/CommonAboutDialog.cs 2005-08-23 16:19:31 UTC (rev 2780)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/CommonAboutDialog.cs 2005-08-23 16:20:41 UTC (rev 2781)
@@ -58,7 +58,7 @@
this.Realized += new EventHandler (OnRealized);
this.ExposeEvent += new ExposeEventHandler (OnExposed);
- image = Runtime.Gui.Resources.GetBitmap ("Icons.AboutImage");
+ image = new Gdk.Pixbuf (GetType().Assembly, "Icons.AboutImage");
TimerHandle = GLib.Timeout.Add (50, new TimeoutHandler (ScrollDown));
}
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/ProjectFolder.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/ProjectFolder.cs 2005-08-23 16:19:31 UTC (rev 2780)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/ProjectFolder.cs 2005-08-23 16:20:41 UTC (rev 2781)
@@ -40,6 +40,7 @@
string absolutePath;
Project project;
object parent;
+ bool trackChanges;
public ProjectFolder (string absolutePath, Project project): this (absolutePath, project, null)
{
@@ -50,9 +51,21 @@
this.parent = parent;
this.project = project;
this.absolutePath = absolutePath;
- Runtime.FileService.FileRenamed += new FileEventHandler (OnFileRenamed);
}
+ public bool TrackChanges {
+ get { return trackChanges; }
+ set {
+ if (trackChanges != value) {
+ trackChanges = value;
+ if (trackChanges)
+ Runtime.FileService.FileRenamed += new FileEventHandler (OnFileRenamed);
+ else
+ Runtime.FileService.FileRenamed -= new FileEventHandler (OnFileRenamed);
+ }
+ }
+ }
+
public string Path {
get { return absolutePath; }
}
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/ProjectFolderNodeBuilder.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/ProjectFolderNodeBuilder.cs 2005-08-23 16:19:31 UTC (rev 2780)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/ProjectPad/ProjectFolderNodeBuilder.cs 2005-08-23 16:20:41 UTC (rev 2781)
@@ -83,6 +83,7 @@
ProjectFolder folder = (ProjectFolder) dataObject;
folder.FolderRenamed += fileRenamedHandler;
folder.FolderRemoved += fileRemovedHandler;
+ folder.TrackChanges = true;
}
public override void OnNodeRemoved (object dataObject)
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am 2005-08-23 16:19:31 UTC (rev 2780)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am 2005-08-23 16:20:41 UTC (rev 2781)
@@ -616,6 +616,7 @@
icons/Icons.32x32.ResourceFileIcon \
icons/Icons.32x32.TextFileIcon \
icons/Icons.32x32.XMLFileIcon \
+icons/Icons.AboutImage \
icons/Icons.SharpDevelopIcon \
icons/Icons.TipOfTheDayIcon
More information about the Monodevelop-patches-list
mailing list