This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
[PATCH] Fix scrollbar borderwidth on variable windows
- From: Keith Seitz <keiths at redhat dot com>
- To: insight <insight at sourceware dot org>
- Date: Thu, 23 Apr 2009 20:41:15 -0700
- Subject: [PATCH] Fix scrollbar borderwidth on variable windows
Hi,
For an embarrassingly long time now, I've noticed (at least on linux)
that scrollbars in the variable windows were pretty darn ugly. So while
I was in a hacking mood, I figured out what was causing it. I'm not
entirely sure why the "-borderwidth 0" option was used originally, but
removing definitely looks better to me than having it.
If there are any problems with this patch on other systems, please let
me know.
Keith
ChangeLog
2009-04-23 Keith Seitz <keiths@redhat.com>
* library/vartree.itb (constructor): Remove the borderwidth 0
argument.
Index: library/vartree.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/vartree.itb,v
retrieving revision 1.7
diff -u -p -r1.7 vartree.itb
--- library/vartree.itb 23 Dec 2005 18:26:50 -0000 1.7
+++ library/vartree.itb 24 Apr 2009 03:37:44 -0000
@@ -1,5 +1,5 @@
# Variable tree implementation for Insight.
-# Copyright (C) 2002 Red Hat, Inc.
+# Copyright (C) 2002, 2009 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License (GPL) as published by
@@ -20,7 +20,7 @@ itcl::body VarTree::constructor {args}
itk_component add canvas {
iwidgets::scrolledcanvas $itk_interior.c -autoresize 1 -hscrollmode dynamic -vscrollmode dynamic \
- -background $::Colors(textbg) -borderwidth 0 -highlightthickness 0
+ -background $::Colors(textbg) -highlightthickness 0
}
set c [$itk_component(canvas) childsite]
pack $itk_component(canvas) -side top -fill both -expand 1