Rick Scott <[EMAIL PROTECTED]> writes:
> I looked at the 21 sources for this and there is a couple of comparisons
> between a widget and None.
[...]
Thanks for spotting this, Rick. I've made a couple of changes to
use NULL instead of the None; please see the patch at the end.
> Like Alexander mentioned, it does look very different :)
Hope you like it :-).
*** lwlib-Xm.c 2001/02/28 14:55:15 1.37
--- lwlib-Xm.c 2001/02/28 14:56:51
***************
*** 266,272 ****
widget_instance *instance;
/* Get the id of the menu bar or popup menu this widget is in. */
! while (w != None)
{
if (XmIsRowColumn (w))
{
--- 266,272 ----
widget_instance *instance;
/* Get the id of the menu bar or popup menu this widget is in. */
! while (w != NULL)
{
if (XmIsRowColumn (w))
{
***************
*** 280,286 ****
w = XtParent (w);
}
! if (w != None)
{
instance = lw_get_widget_instance (w);
if (instance && instance->info->highlight_cb)
--- 280,286 ----
w = XtParent (w);
}
! if (w != NULL)
{
instance = lw_get_widget_instance (w);
if (instance && instance->info->highlight_cb)
*** xfns.c 2001/02/28 14:59:21 1.477
--- xfns.c 2001/02/28 15:03:06
***************
*** 10977,10983 ****
extern void xlwmenu_redisplay P_ ((Widget));
if (!DoesSaveUnders (FRAME_X_DISPLAY_INFO (f)->screen)
! && w != None)
{
BLOCK_INPUT;
xlwmenu_redisplay (w);
--- 10977,10983 ----
extern void xlwmenu_redisplay P_ ((Widget));
if (!DoesSaveUnders (FRAME_X_DISPLAY_INFO (f)->screen)
! && w != NULL)
{
BLOCK_INPUT;
xlwmenu_redisplay (w);
*** xterm.c 2001/02/28 15:00:39 1.600
--- xterm.c 2001/02/28 15:03:19
***************
*** 11996,12002 ****
#ifdef USE_X_TOOLKIT
! if (f->output_data.x->widget != None)
{
/* The x and y position of the widget is clobbered by the
call to XtSetValues within EmacsFrameSetCharSize.
--- 11996,12002 ----
#ifdef USE_X_TOOLKIT
! if (f->output_data.x->widget != NULL)
{
/* The x and y position of the widget is clobbered by the
call to XtSetValues within EmacsFrameSetCharSize.