fix wrong exit func in ui_window_widget_destroy (Motif)

Sat, 22 Nov 2025 18:40:24 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 22 Nov 2025 18:40:24 +0100
changeset 924
6c6e97e06009
parent 923
b72d47697644
child 925
df27741d02b5

fix wrong exit func in ui_window_widget_destroy (Motif)

ui/motif/toolkit.h file | annotate | diff | comparison | revisions
ui/motif/window.c file | annotate | diff | comparison | revisions
--- a/ui/motif/toolkit.h	Sat Nov 22 18:37:46 2025 +0100
+++ b/ui/motif/toolkit.h	Sat Nov 22 18:40:24 2025 +0100
@@ -82,8 +82,6 @@
 typedef enum UiOrientation UiOrientation;
 enum UiOrientation { UI_HORIZONTAL = 0, UI_VERTICAL };
 
-void ui_exit_mainloop();
-
 XtAppContext ui_motif_get_app(void);
 Display* ui_motif_get_display(void);
 
--- a/ui/motif/window.c	Sat Nov 22 18:37:46 2025 +0100
+++ b/ui/motif/window.c	Sat Nov 22 18:40:24 2025 +0100
@@ -50,7 +50,7 @@
     uic_object_destroy(obj);
     nwindows--;
     if(nwindows == 0) {
-        ui_exit_mainloop();
+        ui_app_quit();
     }
 }
 

mercurial