From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27390 invoked by alias); 24 Apr 2009 03:41:26 -0000 Received: (qmail 27381 invoked by uid 22791); 24 Apr 2009 03:41:26 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_73,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Apr 2009 03:41:20 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n3O3fIfa004181 for ; Thu, 23 Apr 2009 23:41:18 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n3O3fIFV030802 for ; Thu, 23 Apr 2009 23:41:18 -0400 Received: from lindt.uglyboxes.com (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n3O3fGwb012643 for ; Thu, 23 Apr 2009 23:41:17 -0400 Message-ID: <49F134DB.8040100@redhat.com> Date: Fri, 24 Apr 2009 03:41:00 -0000 From: Keith Seitz User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: insight Subject: [PATCH] Fix scrollbar borderwidth on variable windows Content-Type: multipart/mixed; boundary="------------090404010404030401080309" X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00024.txt.bz2 This is a multi-part message in MIME format. --------------090404010404030401080309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 566 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 * library/vartree.itb (constructor): Remove the borderwidth 0 argument. --------------090404010404030401080309 Content-Type: text/plain; name="vartree-borderwidth.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vartree-borderwidth.patch" Content-length: 1042 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 --------------090404010404030401080309--