Author: lluis
Date: 2008-01-23 15:12:39 -0500 (Wed, 23 Jan 2008)
New Revision: 93704
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OpenFileInSolutionDialog.cs
trunk/monodevelop/main/src/core/MonoDevelop.Ide/gtk-gui/MonoDevelop.Ide.Gui.Dialogs.OpenFileInSolutionDialog.cs
trunk/monodevelop/main/src/core/MonoDevelop.Ide/gtk-gui/gui.stetic
Log:
* MonoDevelop.Ide.Commands/FileCommands.cs: Disable the
OpenFileInSolution command if no solution is open.
* MonoDevelop.Ide.Gui.Dialogs/OpenFileInSolutionDialog.cs: Disable the
open button if no row is selected.
* gtk-gui/MonoDevelop.Ide.Gui.Dialogs.OpenFileInSolutionDialog.cs,
gtk-gui/gui.stetic: Updated.
Modified: trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog 2008-01-23
20:03:49 UTC (rev 93703)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog 2008-01-23
20:12:39 UTC (rev 93704)
@@ -1,5 +1,14 @@
2008-01-23 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+ * MonoDevelop.Ide.Commands/FileCommands.cs: Disable the
OpenFileInSolution
+ command if no solution is open.
+ * MonoDevelop.Ide.Gui.Dialogs/OpenFileInSolutionDialog.cs: Disable the
open
+ button if no row is selected.
+ * gtk-gui/MonoDevelop.Ide.Gui.Dialogs.OpenFileInSolutionDialog.cs,
+ gtk-gui/gui.stetic: Updated.
+
+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.
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
===================================================================
---
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
2008-01-23 20:03:49 UTC (rev 93703)
+++
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
2008-01-23 20:12:39 UTC (rev 93704)
@@ -146,6 +146,11 @@
{
OpenFileInSolutionDialog.Show (true);
}
+
+ protected override void Update (CommandInfo info)
+ {
+ info.Enabled =
IdeApp.ProjectOperations.CurrentOpenCombine != null;
+ }
}
internal class CloseCombineHandler : CommandHandler
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OpenFileInSolutionDialog.cs
===================================================================
---
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OpenFileInSolutionDialog.cs
2008-01-23 20:03:49 UTC (rev 93703)
+++
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OpenFileInSolutionDialog.cs
2008-01-23 20:12:39 UTC (rev 93704)
@@ -166,8 +166,14 @@
model.SetSortColumnId (COL_FILE, SortType.Ascending);
model.ChangeSortColumn ();
this.cellHeight = 29;
+ tree.Selection.Changed += OnSelectionChanged;
}
+ void OnSelectionChanged (object ob, EventArgs args)
+ {
+ openButton.Sensitive = (tree.Selection.GetSelectedRows
().Length != 0);
+ }
+
protected void HandleShown (object sender, System.EventArgs e)
{
// Perform the search over in case things have changed.
Modified:
trunk/monodevelop/main/src/core/MonoDevelop.Ide/gtk-gui/MonoDevelop.Ide.Gui.Dialogs.OpenFileInSolutionDialog.cs
===================================================================
---
trunk/monodevelop/main/src/core/MonoDevelop.Ide/gtk-gui/MonoDevelop.Ide.Gui.Dialogs.OpenFileInSolutionDialog.cs
2008-01-23 20:03:49 UTC (rev 93703)
+++
trunk/monodevelop/main/src/core/MonoDevelop.Ide/gtk-gui/MonoDevelop.Ide.Gui.Dialogs.OpenFileInSolutionDialog.cs
2008-01-23 20:12:39 UTC (rev 93704)
@@ -49,6 +49,7 @@
w1.Events = ((Gdk.EventMask)(256));
w1.Name = "dialog_VBox";
w1.Spacing = 6;
+ w1.BorderWidth = ((uint)(2));
// Container child dialog_VBox.Gtk.Box+BoxChild
this.vbox2 = new Gtk.VBox();
this.vbox2.Name = "vbox2";
@@ -135,8 +136,8 @@
Gtk.HButtonBox w11 = this.ActionArea;
w11.Events = ((Gdk.EventMask)(256));
w11.Name = "MonoDevelop.Ide.OpenFileInSolutionDialog_ActionArea";
- w11.Spacing = 10;
- w11.BorderWidth = ((uint)(6));
+ w11.Spacing = 6;
+ w11.BorderWidth = ((uint)(5));
w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
// Container child
MonoDevelop.Ide.OpenFileInSolutionDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
this.cancelButton = new Gtk.Button();
Modified: trunk/monodevelop/main/src/core/MonoDevelop.Ide/gtk-gui/gui.stetic
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Ide/gtk-gui/gui.stetic
2008-01-23 20:03:49 UTC (rev 93703)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Ide/gtk-gui/gui.stetic
2008-01-23 20:12:39 UTC (rev 93704)
@@ -24,6 +24,7 @@
<property name="MemberName" />
<property name="Events">ButtonPressMask</property>
<property name="Spacing">6</property>
+ <property name="BorderWidth">2</property>
<child>
<widget class="Gtk.VBox" id="vbox2">
<property name="MemberName" />
@@ -148,8 +149,8 @@
<widget class="Gtk.HButtonBox"
id="MonoDevelop.Ide.OpenFileInSolutionDialog_ActionArea">
<property name="MemberName" />
<property name="Events">ButtonPressMask</property>
- <property name="Spacing">10</property>
- <property name="BorderWidth">6</property>
+ <property name="Spacing">6</property>
+ <property name="BorderWidth">5</property>
<property name="Size">2</property>
<property name="LayoutStyle">End</property>
<child>
@@ -6001,4 +6002,4 @@
</widget>
</child>
</widget>
-</stetic-interface>
+</stetic-interface>
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches