[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-patches
Subject: [Mono-patches] r61329 - in
From: "Lluis Sanchez (lluis () ximian ! com)" <mono-patches-list () lists ! ximian ! com>
Date: 2006-05-31 14:14:29
Message-ID: 20060531141429.45B099472C () mono-cvs ! ximian ! com
[Download RAW message or body]
Author: lluis
Date: 2006-05-31 10:14:29 -0400 (Wed, 31 May 2006)
New Revision: 61329
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Base.glade
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/AddinTreeWidget.cs
Log:
2006-05-31 Lluis Sanchez Gual <lluis@novell.com>
* Base.glade: Show enable/disable buttons.
* MonoDevelop.Core.Gui.Dialogs/AddinTreeWidget.cs: Save/restore
the cursor position when refreshing the tree.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Base.glade
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Base.glade 2006-05-31 13:55:23 \
UTC (rev 61328)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/Base.glade 2006-05-31 14:14:29 \
UTC (rev 61329) @@ -924,6 +924,7 @@
<child>
<widget class="GtkButton" id="btnEnable">
+ <property name="visible">True</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
@@ -1002,6 +1003,7 @@
<child>
<widget class="GtkButton" id="btnDisable">
+ <property name="visible">True</property>
<property name="can_focus">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog 2006-05-31 13:55:23 UTC \
(rev 61328)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/ChangeLog 2006-05-31 14:14:29 UTC \
(rev 61329) @@ -1,3 +1,9 @@
+2006-05-31 Lluis Sanchez Gual <lluis@novell.com>
+
+ * Base.glade: Show enable/disable buttons.
+ * MonoDevelop.Core.Gui.Dialogs/AddinTreeWidget.cs: Save/restore
+ the cursor position when refreshing the tree.
+
2006-05-30 Lluis Sanchez Gual <lluis@novell.com>
* MonoDevelop.Core.Gui.mdp:
Modified: trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/AddinTreeWidget.cs
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/AddinTreeWidget.cs 2006-05-31 \
13:55:23 UTC (rev 61328)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui.Dialogs/AddinTreeWidget.cs 2006-05-31 \
14:14:29 UTC (rev 61329) @@ -222,11 +222,19 @@
public object SaveStatus ()
{
TreeIter iter;
+ ArrayList list = new ArrayList ();
+ // Save the current selection
+ Gtk.TreeModel foo;
+ if (treeView.Selection.GetSelected (out foo, out iter))
+ list.Add (treeStore.GetPath (iter));
+ else
+ list.Add (null);
+
if (!treeStore.GetIterFirst (out iter))
return null;
- ArrayList list = new ArrayList ();
+ // Save the expand state
do {
SaveStatus (list, iter);
} while (treeStore.IterNext (ref iter));
@@ -238,8 +246,17 @@
{
if (ob == null)
return;
- foreach (TreePath path in (ArrayList)ob)
- treeView.ExpandRow (path, false);
+
+ // The first element is the selection
+ ArrayList list = (ArrayList) ob;
+ TreePath selpath = (TreePath) list [0];
+ list.RemoveAt (0);
+
+ foreach (TreePath path in list)
+ treeView.ExpandRow (path, false);
+
+ if (selpath != null)
+ treeView.Selection.SelectPath (selpath);
}
void SaveStatus (ArrayList list, TreeIter iter)
_______________________________________________
Mono-patches maillist - Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic