summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralgernon <algernon>2001-02-15 21:41:55 +0000
committeralgernon <algernon>2001-02-15 21:41:55 +0000
commite585df5873790eb4687aa1187dcfcc94469a077f (patch)
treec7c4c4486453b227b223a6f78a58fd6a8b4c61a6 /src
parentfb302390ce433e303252a0e22b66a5e4f6aeb0a0 (diff)
downloadratpoison-e585df5873790eb4687aa1187dcfcc94469a077f.zip
(display_msg_bar): changed an fprintf to a PRING_DEBUG
Diffstat (limited to 'src')
-rw-r--r--src/bar.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/bar.c b/src/bar.c
index 493d3b4..d5a2a9b 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -1,22 +1,25 @@
/* Functionality for a bar across the bottom of the screen listing the
* windows currently managed.
- *
- * Copyright (C) 2000 Shawn Betts
- *
- * This program is free software; you can redistribute it and/or modify
+ *
+ * Copyright (C) 2000, 2001 Shawn Betts
+ *
+ * This file is part of ratpoison.
+ *
+ * ratpoison is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
- *
- * This program is distributed in the hope that it will be useful,
+ *
+ * ratpoison is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307 USA */
+ * Boston, MA 02111-1307 USA
+ */
#include <X11/X.h>
#include <X11/Xlib.h>
@@ -185,7 +188,7 @@ display_msg_in_bar (screen_info *s, char *msg, int mark_start, int mark_end)
start = XTextWidth (s->font, msg, mark_start);
end = XTextWidth (s->font, msg + mark_start, mark_end - mark_start);
- fprintf (stderr, "%d %d strlen(%d)==> %d %d\n", mark_start, mark_end, strlen(msg), start, end);
+ PRINT_DEBUG ("%d %d strlen(%d)==> %d %d\n", mark_start, mark_end, strlen(msg), start, end);
lgv.foreground = gv.foreground;
lgv.function = GXxor;