Author: toshok
Date: 2007-06-20 19:11:14 -0400 (Wed, 20 Jun 2007)
New Revision: 80380

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

        * xaml.cpp (dependency_object_hookup_event): we need more than
        just the Loaded event.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-20 22:52:38 UTC (rev 80379)
+++ trunk/moon/src/ChangeLog    2007-06-20 23:11:14 UTC (rev 80380)
@@ -1,3 +1,8 @@
+2007-06-20  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * xaml.cpp (dependency_object_hookup_event): we need more than
+       just the Loaded event.
+
 2007-06-20  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * text.cpp (Run): Don't set default font values here... we need

Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp     2007-06-20 22:52:38 UTC (rev 80379)
+++ trunk/moon/src/xaml.cpp     2007-06-20 23:11:14 UTC (rev 80380)
@@ -1834,17 +1834,14 @@
 bool
 dependency_object_hookup_event (XamlParserInfo *p, XamlElementInstance *item, 
const char *name, const char *value)
 {
-       if (!strcmp (name, "Loaded")) {
-               if (!p->hookup_event_callback) {
-                       // void parser_error (XamlParserInfo *p, const char 
*el, const char *attr, const char *message);
-                       parser_error (p, item->element_name, name,
-                                       g_strdup_printf ("No hookup event 
callback handler installed '%s' event will not be hooked up\n", name));
-                       return true;
-               }
-
-               p->hookup_event_callback (item->item, name, value);
+       if (!p->hookup_event_callback) {
+               // void parser_error (XamlParserInfo *p, const char *el, const 
char *attr, const char *message);
+               parser_error (p, item->element_name, name,
+                             g_strdup_printf ("No hookup event callback 
handler installed '%s' event will not be hooked up\n", name));
+               return true;
        }
 
+       p->hookup_event_callback (item->item, name, value);
        return false;
 }
 

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

Reply via email to