Author: toshok
Date: 2007-07-11 20:58:28 -0400 (Wed, 11 Jul 2007)
New Revision: 81839
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/uielement.cpp
Log:
* uielement.cpp (UIElement::UIElement): the event names need to
match those used by microsoft. makes it easier to handle the
event hooking up in the plugin, where the event names are used.
2007-07-11 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-07-11 23:32:29 UTC (rev 81838)
+++ trunk/moon/src/ChangeLog 2007-07-12 00:58:28 UTC (rev 81839)
@@ -1,5 +1,11 @@
2007-07-11 Chris Toshok <[EMAIL PROTECTED]>
+ * uielement.cpp (UIElement::UIElement): the event names need to
+ match those used by microsoft. makes it easier to handle the
+ event hooking up in the plugin, where the event names are used.
+
+2007-07-11 Chris Toshok <[EMAIL PROTECTED]>
+
* xaml.cpp (xaml_set_property_from_str): the plugin does its own
resolution of properties now, so it doesn't need to pass the
property name. Change this to take the DependencyProperty*
Modified: trunk/moon/src/uielement.cpp
===================================================================
--- trunk/moon/src/uielement.cpp 2007-07-11 23:32:29 UTC (rev 81838)
+++ trunk/moon/src/uielement.cpp 2007-07-12 00:58:28 UTC (rev 81839)
@@ -56,13 +56,13 @@
UIElement::UIElement () : opacityMask(NULL), parent(NULL), flags
(UIElement::RENDER_VISIBLE | UIElement::LAYOUT_VISIBLE |
UIElement::HIT_TEST_VISIBLE)
{
LoadedEvent = RegisterEvent ("Loaded");
- MotionEvent = RegisterEvent ("Motion");
- ButtonPressEvent = RegisterEvent ("ButtonPress");
- ButtonReleaseEvent = RegisterEvent ("ButtonRelease");
+ MotionEvent = RegisterEvent ("MouseMove");
+ ButtonPressEvent = RegisterEvent ("MouseLeftButtonDown");
+ ButtonReleaseEvent = RegisterEvent ("MouseLeftButtonUp");
KeyDownEvent = RegisterEvent ("KeyDown");
KeyUpEvent = RegisterEvent ("KeyUp");
- EnterEvent = RegisterEvent ("Enter");
- LeaveEvent = RegisterEvent ("Leave");
+ EnterEvent = RegisterEvent ("MouseEnter");
+ LeaveEvent = RegisterEvent ("MouseLeave");
bounds = Rect (0,0,0,0);
cairo_matrix_init_identity (&absolute_xform);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches