ui/winui/toolkit.cpp

branch
newapi
changeset 181
c52d88ea020b
parent 179
34f4d78647be
child 183
3ce2eb11913b
--- a/ui/winui/toolkit.cpp	Tue May 23 14:19:06 2023 +0200
+++ b/ui/winui/toolkit.cpp	Mon May 29 10:37:23 2023 +0200
@@ -97,14 +97,6 @@
 	return application_name;
 }
 
-UiContext* ui_global_context(void) {
-	return NULL;
-}
-
-void ui_context_closefunc(UiContext* ctx, ui_callback fnc, void* udata) {
-
-}
-
 void ui_onstartup(ui_callback f, void* userdata) {
 	startup_func = f;
 	startup_data = userdata;
@@ -126,8 +118,11 @@
 }
 
 void ui_show(UiObject* obj) {
-	UiWidget* w = (UiWidget*)obj->widget;
-	w->show();
+	if (obj->wobj) {
+		obj->wobj.Activate();
+	} else {
+		// ZODO
+	}
 }
 
 void ui_close(UiObject* obj) {

mercurial