Author: rolf
Date: 2007-09-27 10:16:44 -0400 (Thu, 27 Sep 2007)
New Revision: 86497
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/control.cpp
trunk/moon/src/control.h
Log:
* control.h, control.cpp: Added control_initialize_from_xaml_callbacks,
and change InitializeFromXaml to take a XamlLoader argument.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-09-27 14:16:39 UTC (rev 86496)
+++ trunk/moon/src/ChangeLog 2007-09-27 14:16:44 UTC (rev 86497)
@@ -1,5 +1,10 @@
2007-09-27 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+ * control.h, control.cpp: Added control_initialize_from_xaml_callbacks,
and
+ change InitializeFromXaml to take a XamlLoader argument.
+
+2007-09-27 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
* xaml.cpp: More unrefs.
2007-09-27 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
Modified: trunk/moon/src/control.cpp
===================================================================
--- trunk/moon/src/control.cpp 2007-09-27 14:16:39 UTC (rev 86496)
+++ trunk/moon/src/control.cpp 2007-09-27 14:16:44 UTC (rev 86497)
@@ -146,10 +146,10 @@
UIElement*
Control::InitializeFromXaml (const char *xaml,
- Type::Kind *element_type)
+ Type::Kind *element_type, XamlLoader *loader)
{
// No callback, figure out how this will work in the plugin to satisfy
deps
- UIElement *element = (UIElement*)xaml_create_from_str (NULL, xaml,
false, element_type);
+ UIElement *element = (UIElement*)xaml_create_from_str (loader, xaml,
false, element_type);
if (element == NULL)
return NULL;
@@ -173,9 +173,16 @@
control_initialize_from_xaml (Control *control, const char *xaml,
Type::Kind *element_type)
{
- return control->InitializeFromXaml (xaml, element_type);
+ return control->InitializeFromXaml (xaml, element_type, NULL);
}
+UIElement*
+control_initialize_from_xaml_callbacks (Control *control, const char *xaml,
+ Type::Kind *element_type, XamlLoader *loader)
+{
+ return control->InitializeFromXaml (xaml, element_type, loader);
+}
+
Control *
control_new (void)
{
Modified: trunk/moon/src/control.h
===================================================================
--- trunk/moon/src/control.h 2007-09-27 14:16:39 UTC (rev 86496)
+++ trunk/moon/src/control.h 2007-09-27 14:16:44 UTC (rev 86497)
@@ -44,7 +44,7 @@
virtual void OnLoaded ();
UIElement* InitializeFromXaml (const char *xaml,
- Type::Kind *element_type);
+ Type::Kind *element_type, XamlLoader*
loader);
};
G_BEGIN_DECLS
@@ -52,7 +52,8 @@
Control *control_new (void);
UIElement* control_initialize_from_xaml (Control *control, const char *xaml,
Type::Kind *element_type);
-
+UIElement* control_initialize_from_xaml_callbacks (Control *control, const
char *xaml,
+ Type::Kind *element_type, XamlLoader*
loader);
G_END_DECLS
#endif /* __MOON_CONTROL_H__ */
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches