Author: toshok
Date: 2007-11-20 20:48:11 -0500 (Tue, 20 Nov 2007)
New Revision: 90056

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/xaml.cpp
Log:
2007-11-20  Chris Toshok  <[EMAIL PROTECTED]>

        * xaml.cpp (XamlElementInstance::ClearSetProperties): in glib <
        2.12, destroy the hash table and set it to NULL so we'll recreate
        it.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-11-21 00:35:13 UTC (rev 90055)
+++ trunk/moon/src/ChangeLog    2007-11-21 01:48:11 UTC (rev 90056)
@@ -1,5 +1,11 @@
 2007-11-20  Chris Toshok  <[EMAIL PROTECTED]>
 
+       * xaml.cpp (XamlElementInstance::ClearSetProperties): in glib <
+       2.12, destroy the hash table and set it to NULL so we'll recreate
+       it.
+
+2007-11-20  Chris Toshok  <[EMAIL PROTECTED]>
+
        * collection.cpp (VisualRemoved): switch from using
        item->parent->ChildInvalidated(UIElement), use
        item->parent->Invalidate (item->GetBounds()).

Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp     2007-11-21 00:35:13 UTC (rev 90055)
+++ trunk/moon/src/xaml.cpp     2007-11-21 01:48:11 UTC (rev 90056)
@@ -128,7 +128,14 @@
 
        void ClearSetProperties ()
        {
+#if GLIB_CHECK_VERSION(2,12,0)
                g_hash_table_remove_all (set_properties);
+#else
+               // this will cause the hash table to be recreated the
+               // next time a property is set.
+               g_hash_table_destroy (set_properties);
+               set_properties = NULL;
+#endif
        }
 };
 

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

Reply via email to