summaryrefslogtreecommitdiff
path: root/lwlib/lwlib-Xm.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-03-22 19:11:33 +0000
committerGerd Moellmann <gerd@gnu.org>2001-03-22 19:11:33 +0000
commit388d6c3389e903bed42b1111ed2fc17855ea50b5 (patch)
treebd3ccd59d26b22ad26a33959d138d37f6ef4518b /lwlib/lwlib-Xm.c
parent364cd450426cc0f93eada8f00c30000ff2ba22f2 (diff)
downloademacs-388d6c3389e903bed42b1111ed2fc17855ea50b5.tar.gz
(x_print_complete_resource_name) [0]: New function.
Diffstat (limited to 'lwlib/lwlib-Xm.c')
-rw-r--r--lwlib/lwlib-Xm.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c
index 9c8fbe50949..766d3554e24 100644
--- a/lwlib/lwlib-Xm.c
+++ b/lwlib/lwlib-Xm.c
@@ -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*