Author: lluis
Date: 2006-08-08 07:31:05 -0400 (Tue, 08 Aug 2006)
New Revision: 63474

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
   trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp
   
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/CommandService.cs
   trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/icons/Icons.16x16.SaveAllIcon
Log:
2006-08-08 Lluis Sanchez Gual  <[EMAIL PROTECTED]>

        * MonoDevelop.Core.Gui/CommandService.cs: Allow specifying an
          initial command target when showing a context menu.
        * icons/Icons.16x16.SaveAllIcon: Updated the save all icon.



Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog   2006-08-08 
11:28:59 UTC (rev 63473)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog   2006-08-08 
11:31:05 UTC (rev 63474)
@@ -1,3 +1,9 @@
+2006-08-08 Lluis Sanchez Gual  <[EMAIL PROTECTED]>
+
+       * MonoDevelop.Core.Gui/CommandService.cs: Allow specifying an
+         initial command target when showing a context menu.
+       * icons/Icons.16x16.SaveAllIcon: Updated the save all icon.
+
 2006-07-12 Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * MonoDevelop.Core.Gui.Dialogs/AddinInstallDialog.cs: Remove debug code.

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/CommandService.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/CommandService.cs
      2006-08-08 11:28:59 UTC (rev 63473)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/CommandService.cs
      2006-08-08 11:31:05 UTC (rev 63474)
@@ -114,6 +114,14 @@
                
                public void ShowContextMenu (Gtk.Menu menu)
                {
+                       ShowContextMenu (menu, null);
+               }
+               
+               public void ShowContextMenu (Gtk.Menu menu, object 
initialCommandTarget)
+               {
+                       if (menu is CommandMenu) {
+                               ((CommandMenu)menu).InitialCommandTarget = 
initialCommandTarget;
+                       }
                        menu.Popup (null, null, null, 0, 
Gtk.Global.CurrentEventTime);
                }
                
@@ -129,9 +137,14 @@
                
                public void ShowContextMenu (CommandEntrySet cset)
                {
-                       manager.ShowContextMenu (cset);
+                       ShowContextMenu (cset, null);
                }
                
+               public void ShowContextMenu (CommandEntrySet cset, object 
initialTarget)
+               {
+                       manager.ShowContextMenu (cset, initialTarget);
+               }
+               
                public void ShowContextMenu (string addinPath)
                {
                        ShowContextMenu (CreateCommandEntrySet (addinPath));

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp    
2006-08-08 11:28:59 UTC (rev 63473)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.mdp    
2006-08-08 11:31:05 UTC (rev 63474)
@@ -14,9 +14,6 @@
     </Configuration>
   </Configurations>
   <DeployTargets />
-  <DeploymentInformation strategy="File">
-    <excludeFiles />
-  </DeploymentInformation>
   <Contents>
     <File name="./Base.glade" subtype="Code" buildaction="EmbedAsResource" />
     <File name="./icons/BreakPoint.png" subtype="Code" 
buildaction="EmbedAsResource" />
@@ -195,6 +192,9 @@
     <File 
name="./MonoDevelop.Core.Gui.ProgressMonitoring/MessageDialogProgressMonitor.cs"
 subtype="Code" buildaction="Compile" />
     <File name="./MonoDevelop.Core.Gui.Codons/StockIconCodon.cs" 
subtype="Code" buildaction="Compile" />
     <File name="./MonoDevelop.Core.Gui.Utils/DesktopApplication.cs" 
subtype="Code" buildaction="Compile" />
+    <File name="./MonoDevelop.Core.Gui.addin.xml" subtype="Code" 
buildaction="Nothing" />
+    <File name="./Makefile.am" subtype="Code" buildaction="Nothing" />
+    <File name="./ChangeLog" subtype="Code" buildaction="Nothing" />
   </Contents>
   <References>
     <ProjectReference type="Project" localcopy="True" refto="MonoDevelop.Core" 
/>
@@ -213,4 +213,7 @@
     <ProjectReference type="Gac" localcopy="True" refto="glade-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
     <ProjectReference type="Gac" localcopy="True" refto="gnome-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
   </References>
+  <DeploymentInformation strategy="File">
+    <excludeFiles />
+  </DeploymentInformation>
 </Project>
\ No newline at end of file

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/icons/Icons.16x16.SaveAllIcon
===================================================================
(Binary files differ)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to