changeset 2469:3de172a37a93

[xemacs-hg @ 2005-01-06 03:45:28 by malcolmp] Fix window-memory-usage failure on tty due to a call to an undefined method.
author malcolmp
date Thu, 06 Jan 2005 03:45:32 +0000
parents 483e8c7a3bd0
children 8c10cc6cb93d
files src/ChangeLog src/scrollbar.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Jan 05 22:51:26 2005 +0000
+++ b/src/ChangeLog	Thu Jan 06 03:45:32 2005 +0000
@@ -1,3 +1,9 @@
+2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
+
+	* scrollbar.c (compute_scrollbar_instance_usage):
+	Only call device method compute_scrollbar_instance_usage() if it
+	is defined.
+
 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
--- a/src/scrollbar.c	Wed Jan 05 22:51:26 2005 +0000
+++ b/src/scrollbar.c	Thu Jan 06 03:45:32 2005 +0000
@@ -267,7 +267,8 @@
 {
   int total = 0;
 
-  total += DEVMETH (d, compute_scrollbar_instance_usage, (d, inst, ovstats));
+  if (HAS_DEVMETH_P(d, compute_scrollbar_instance_usage))
+    total += DEVMETH (d, compute_scrollbar_instance_usage, (d, inst, ovstats));
 
   while (inst)
     {