mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
* lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.
This commit is contained in:
parent
1fbb460913
commit
4d511c40f4
@ -1,5 +1,7 @@
|
||||
2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.
|
||||
|
||||
* xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing.
|
||||
(MINL): Define only if not emacs.
|
||||
|
||||
|
@ -141,29 +141,3 @@ XtWidgetBeingDestroyedP (Widget widget)
|
||||
{
|
||||
return widget->core.being_destroyed;
|
||||
}
|
||||
|
||||
void
|
||||
XtSafelyDestroyWidget (Widget widget)
|
||||
{
|
||||
#if 0
|
||||
|
||||
/* this requires IntrinsicI.h (actually, InitialI.h) */
|
||||
|
||||
XtAppContext app = XtWidgetToApplicationContext(widget);
|
||||
|
||||
if (app->dispatch_level == 0)
|
||||
{
|
||||
app->dispatch_level = 1;
|
||||
XtDestroyWidget (widget);
|
||||
/* generates an event so that the event loop will be called */
|
||||
XChangeProperty (XtDisplay (widget), XtWindow (widget),
|
||||
XA_STRING, XA_STRING, 32, PropModeAppend, NULL, 0);
|
||||
app->dispatch_level = 0;
|
||||
}
|
||||
else
|
||||
XtDestroyWidget (widget);
|
||||
|
||||
#else
|
||||
abort ();
|
||||
#endif
|
||||
}
|
||||
|
@ -15,7 +15,4 @@ Widget *XtCompositeChildren (Widget, unsigned int *);
|
||||
Boolean
|
||||
XtWidgetBeingDestroyedP (Widget widget);
|
||||
|
||||
void XtSafelyDestroyWidget (Widget);
|
||||
|
||||
#endif /* _LWLIB_UTILS_H_ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user