comparison lwlib/lwlib-Xm.c @ 36440:c94bea694181

(xm_arm_callback): Don't compare widgets with `None', use NULL instead.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 28 Feb 2001 15:03:11 +0000
parents d45267642a42
children 93e2f21c32bd
comparison
equal deleted inserted replaced
36439:f29ccc7908b6 36440:c94bea694181
264 XmPushButtonCallbackStruct *cbs = (XmPushButtonCallbackStruct *) call_data; 264 XmPushButtonCallbackStruct *cbs = (XmPushButtonCallbackStruct *) call_data;
265 widget_value *wv = (widget_value *) client_data; 265 widget_value *wv = (widget_value *) client_data;
266 widget_instance *instance; 266 widget_instance *instance;
267 267
268 /* Get the id of the menu bar or popup menu this widget is in. */ 268 /* Get the id of the menu bar or popup menu this widget is in. */
269 while (w != None) 269 while (w != NULL)
270 { 270 {
271 if (XmIsRowColumn (w)) 271 if (XmIsRowColumn (w))
272 { 272 {
273 unsigned char type = 0xff; 273 unsigned char type = 0xff;
274 274
278 } 278 }
279 279
280 w = XtParent (w); 280 w = XtParent (w);
281 } 281 }
282 282
283 if (w != None) 283 if (w != NULL)
284 { 284 {
285 instance = lw_get_widget_instance (w); 285 instance = lw_get_widget_instance (w);
286 if (instance && instance->info->highlight_cb) 286 if (instance && instance->info->highlight_cb)
287 { 287 {
288 call_data = cbs->reason == XmCR_DISARM ? NULL : wv; 288 call_data = cbs->reason == XmCR_DISARM ? NULL : wv;