1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-20 13:00:51 -07:00

(x_print_complete_resource_name) [0]: New function.

This commit is contained in:
Gerd Moellmann 2001-03-22 19:11:33 +00:00
parent 364cd45042
commit 388d6c3389

View file

@ -139,6 +139,32 @@ void xm_manage_resizing P_ ((Widget, Boolean));
#endif
#if 0
/* Print the complete X resource name of widget WIDGET to stderr.
This is sometimes handy to have available. */
void
x_print_complete_resource_name (widget)
Widget widget;
{
int i;
String names[100];
for (i = 0; i < 100 && widget != NULL; ++i)
{
names[i] = XtName (widget);
widget = XtParent (widget);
}
for (--i; i >= 1; --i)
fprintf (stderr, "%s.", names[i]);
fprintf (stderr, "%s\n", names[0]);
}
#endif /* 0 */
static destroyed_instance *all_destroyed_instances = NULL;
static destroyed_instance*