small fixes in the motif grid widget default tip

Sat, 04 Jul 2026 17:46:17 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 04 Jul 2026 17:46:17 +0200
changeset 1217
c1d4c331c28b
parent 1216
c9702a6d7306

small fixes in the motif grid widget

ui/motif/Grid.c file | annotate | diff | comparison | revisions
--- a/ui/motif/Grid.c	Fri Jun 19 21:18:18 2026 +0200
+++ b/ui/motif/Grid.c	Sat Jul 04 17:46:17 2026 +0200
@@ -281,11 +281,11 @@
         NULL,                         // set_values_hook
         XtInheritSetValuesAlmost,     // set_values_almost
         NULL,                         // get_values_hook
-        (XtAcceptFocusProc)grid_acceptfocus,       // accept_focus
+        (XtAcceptFocusProc)NULL,       // accept_focus
         XtVersion,                    // version
         NULL,                         // callback_offsets
         //NULL,                         // tm_table
-                defaultTranslations,
+        XtInheritTranslations, //defaultTranslations,
         XtInheritQueryGeometry,       // query_geometry
         NULL,                         // display_accelerator
         NULL,                         // extension
@@ -342,7 +342,7 @@
 void grid_realize(Widget w,XtValueMask *valueMask,XSetWindowAttributes *attributes) {
     Grid grid = (Grid)w;
     XtMakeResizeRequest(w, 400, 400, NULL, NULL);
-    (coreClassRec.core_class.realize)((Widget)w, valueMask, attributes); 
+    (*xmManagerClassRec.core_class.realize)(w, valueMask, attributes);
     grid_place_children(grid);
 }
 
@@ -363,9 +363,6 @@
     return False;
 }
 
-Boolean grid_acceptfocus(Widget w, Time *t) {
-    
-}
 
 void grid_getfocus(Widget myw, XEvent *event, String *params, Cardinal *nparam) {
     

mercurial