Author: mkestner
Date: 2005-03-12 21:43:27 -0500 (Sat, 12 Mar 2005)
New Revision: 41744
Modified:
trunk/gtk-sharp/ChangeLog
trunk/gtk-sharp/gtk/TreeViewColumn.custom
Log:
2005-03-12 Mike Kestner <[EMAIL PROTECTED]>
* gtk/TreeViewColumn.custom : use PersistentData to hold the
CellDataFuncs.
Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog 2005-03-13 02:39:29 UTC (rev 41743)
+++ trunk/gtk-sharp/ChangeLog 2005-03-13 02:43:27 UTC (rev 41744)
@@ -1,5 +1,10 @@
2005-03-12 Mike Kestner <[EMAIL PROTECTED]>
+ * gtk/TreeViewColumn.custom : use PersistentData to hold the
+ CellDataFuncs.
+
+2005-03-12 Mike Kestner <[EMAIL PROTECTED]>
+
* glib/Makefile.am : add new file.
* glib/Object.cs : add protected PersistentData hash to hold data
across GC cycles.
Modified: trunk/gtk-sharp/gtk/TreeViewColumn.custom
===================================================================
--- trunk/gtk-sharp/gtk/TreeViewColumn.custom 2005-03-13 02:39:29 UTC (rev
41743)
+++ trunk/gtk-sharp/gtk/TreeViewColumn.custom 2005-03-13 02:43:27 UTC (rev
41744)
@@ -66,13 +66,11 @@
}
}
- Hashtable cell_data_funcs;
-
Hashtable CellDataFuncs {
get {
- if (cell_data_funcs == null)
- cell_data_funcs = new Hashtable ();
- return cell_data_funcs;
+ if (PersistentData ["gtksharp_cell_data_funcs"]
== null)
+ PersistentData
["gtksharp_cell_data_funcs"] = new Hashtable ();
+ return PersistentData
["gtksharp_cell_data_funcs"] as Hashtable;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches