From 566f7ec8587d8cdbbf71fe51ec3acb516d685fc5 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 5 Mar 2000 14:32:02 +0000 Subject: [PATCH] (xm_manage_resizing): Rewritten. --- lwlib/ChangeLog | 11 +++++++++++ lwlib/lwlib-Xm.c | 17 +---------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index edea041c5ee..3f6389bcda0 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@ -1,3 +1,14 @@ +2000-03-05 Gerd Moellmann + + * lwlib-Xm.c (xm_manage_resizing): Rewritten. + + * lwlib.c (lw_modify_all_widgets): Return non-zero if widget + tree was changed. + (merge_widget_value): Add parameter CHANGE_P. Set *CHANGE_P + to 1 if a change occurs. + + * lwlib.h (lw_modify_all_widgets): Change prototype. + 2000-03-04 Gerd Moellmann * xlwmenu.c (make_shadow_gcs): Use the widget's colormap instead diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c index 49c32293ef5..ca9898b5130 100644 --- a/lwlib/lwlib-Xm.c +++ b/lwlib/lwlib-Xm.c @@ -1963,20 +1963,5 @@ xm_manage_resizing (w, flag) Widget w; Boolean flag; { - if (flag) - { - /* Enable the edit widget for resizing. */ - Arg al[1]; - - XtSetArg (al[0], XtNallowShellResize, 0); - XtSetValues (w, al, 1); - } - else - { - /* Disable the edit widget from resizing. */ - Arg al[1]; - - XtSetArg (al[0], XtNallowShellResize, 0); - XtSetValues (w, al, 1); - } + XtVaSetValues (w, XtNallowShellResize, flag, NULL); } -- 2.39.5