add ui_motif_set_fallback_resources function (Motif)

Sun, 23 Nov 2025 10:12:42 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 23 Nov 2025 10:12:42 +0100
changeset 928
35a0fd2f4f3d
parent 927
b8c0f718b141
child 929
43cb1ea4c582

add ui_motif_set_fallback_resources function (Motif)

ui/motif/toolkit.c file | annotate | diff | comparison | revisions
ui/motif/toolkit.h file | annotate | diff | comparison | revisions
--- a/ui/motif/toolkit.c	Sun Nov 23 09:28:22 2025 +0100
+++ b/ui/motif/toolkit.c	Sun Nov 23 10:12:42 2025 +0100
@@ -89,6 +89,10 @@
     read(event_pipe[0], &ptr, sizeof(void*));
 }
 
+void ui_motif_set_fallback_resources(String fallbackres[]) {
+    fallback = fallbackres;
+}
+
 void ui_init(const char *appname, int argc, char **argv) { 
     application_name = appname;
     uic_init_global_context();
--- a/ui/motif/toolkit.h	Sun Nov 23 09:28:22 2025 +0100
+++ b/ui/motif/toolkit.h	Sun Nov 23 10:12:42 2025 +0100
@@ -84,6 +84,7 @@
 
 XtAppContext ui_motif_get_app(void);
 Display* ui_motif_get_display(void);
+void ui_motif_set_fallback_resources(String fallback[]);
 
 void ui_set_active_window(Widget w);
 Widget ui_get_active_window();

mercurial