mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.
This commit is contained in:
parent
1fbb460913
commit
4d511c40f4
3 changed files with 2 additions and 29 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue