Author: jacobilsoe
Date: 2005-12-12 14:41:05 -0500 (Mon, 12 Dec 2005)
New Revision: 54253
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/ManageSitesDialog.cs
Log:
2005-12-11 Jacob Ilsoe Christensen <[EMAIL PROTECTED]>
* MonoDevelop.Core.Gui.Dialogs/ManageSitesDialog.cs:
Only enable the delete button when something is selected.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog 2005-12-12
19:36:45 UTC (rev 54252)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog 2005-12-12
19:41:05 UTC (rev 54253)
@@ -1,3 +1,8 @@
+2005-12-11 Jacob Ilsoe Christensen <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Core.Gui.Dialogs/ManageSitesDialog.cs:
+ Only enable the delete button when something is selected.
+
2005-11-25 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Core.Gui/StockIcons.cs:
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/ManageSitesDialog.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/ManageSitesDialog.cs
2005-12-12 19:36:45 UTC (rev 54252)
+++
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/ManageSitesDialog.cs
2005-12-12 19:41:05 UTC (rev 54253)
@@ -12,6 +12,7 @@
{
[Glade.Widget ("ManageSitesDialog")] Dialog dialog;
[Glade.Widget] Gtk.TreeView repoTree;
+ [Glade.Widget] Gtk.Button btnRemove;
ListStore treeStore;
public ManageSitesDialog ()
@@ -22,11 +23,14 @@
repoTree.HeadersVisible = true;
repoTree.AppendColumn (GettextCatalog.GetString
("Name"), new Gtk.CellRendererText (), "text", 1);
repoTree.AppendColumn (GettextCatalog.GetString
("Url"), new Gtk.CellRendererText (), "text", 0);
+ repoTree.Selection.Changed += new
EventHandler(OnSelect);
RepositoryRecord[] reps =
Runtime.SetupService.GetRepositories ();
foreach (RepositoryRecord rep in reps) {
treeStore.AppendValues (rep.Url, rep.Title);
}
+
+ btnRemove.Sensitive = false;
}
public void Show ()
@@ -87,5 +91,10 @@
treeStore.Remove (ref iter);
}
+
+ protected void OnSelect(object sender, EventArgs e)
+ {
+ btnRemove.Sensitive =
repoTree.Selection.CountSelectedRows() > 0;
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches