Author: lluis
Date: 2008-01-23 15:01:07 -0500 (Wed, 23 Jan 2008)
New Revision: 93699

Modified:
   trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog
   
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/WordCountDialog.cs
Log:
* MonoDevelop.Ide.Gui.Dialogs/WordCountDialog.cs: Fix crash when
  counting words in a solution with a translation project. Changed
  the order of the buttons. Execute should be the rightmost.

Modified: trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog   2008-01-23 
19:52:56 UTC (rev 93698)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog   2008-01-23 
20:01:07 UTC (rev 93699)
@@ -1,5 +1,11 @@
 2008-01-23  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
+       * MonoDevelop.Ide.Gui.Dialogs/WordCountDialog.cs: Fix crash when 
counting
+         words in a solution with a translation project. Changed the order of 
the
+         buttons. Execute should be the rightmost.
+
+2008-01-23  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
        * MonoDevelop.Ide.Gui/Ide.cs: Initialize the resource service before
          initializing the workbench.
 

Modified: 
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/WordCountDialog.cs
===================================================================
--- 
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/WordCountDialog.cs
      2008-01-23 19:52:56 UTC (rev 93698)
+++ 
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/WordCountDialog.cs
      2008-01-23 20:01:07 UTC (rev 93699)
@@ -159,7 +159,7 @@
                                                        items.Add(r);
                                                }
                                        }
-                               } else
+                               } else if (entry is Combine)
                                        CountCombine ((Combine)entry, ref all);
                        }
                }
@@ -203,12 +203,12 @@
                        this.Title = GettextCatalog.GetString ("Word Count");
                        Button startButton = new Button (Gtk.Stock.Execute);
                        startButton.Clicked += new EventHandler (StartEvent);
+                       
+                       this.AddButton (Gtk.Stock.Cancel, (int) 
ResponseType.Cancel);
 
                        // dont emit response
                        this.ActionArea.PackStart (startButton);
                        
-                       this.AddButton (Gtk.Stock.Cancel, (int) 
ResponseType.Cancel);
-                       
                        scrolledwindow = new ScrolledWindow();
                        scrolledwindow.VscrollbarPolicy = PolicyType.Automatic;
                        scrolledwindow.HscrollbarPolicy = PolicyType.Never;

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

Reply via email to