From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3491 invoked by alias); 14 Mar 2002 17:11:54 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 3271 invoked from network); 14 Mar 2002 17:11:50 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 14 Mar 2002 17:11:50 -0000 Received: from makita.cygnus.com (makita.cygnus.com [205.180.230.78]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id JAA19974 for ; Thu, 14 Mar 2002 09:11:49 -0800 (PST) Received: from localhost (keiths@localhost) by makita.cygnus.com (8.8.8+Sun/8.6.4) with ESMTP id JAA18380 for ; Thu, 14 Mar 2002 09:11:49 -0800 (PST) X-Authentication-Warning: makita.cygnus.com: keiths owned process doing -bs Date: Thu, 14 Mar 2002 09:11:00 -0000 From: Keith Seitz X-X-Sender: To: Insight Maling List Subject: [PATCH] Set bpwin initial size Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-q1/txt/msg00205.txt.bz2 Hi, The breakpoint window is using iwidgets::scrolledframe, which uses a canvas for layout. As with all canvases, initial size of the canvas is a default 100x100, and it consequently doesn't look very nice. This silly patch adds an initial default size of 350x165 for the BpWin. This geometry can be overriden by ManagedWin and user preferences, and it should be pretty harmless. If it isn't, we can fix it if someone says something. Keith ChangeLog 2002-03-14 Keith Seitz * library/bpwin.itb (constructor): Set some sane initial size. Patch Index: gdb/gdbtk/library/bpwin.itb =================================================================== RCS file: /cvs/src/src/gdb/gdbtk/library/bpwin.itb,v retrieving revision 1.12 diff -p -c -2 -p -r1.12 bpwin.itb *** gdb/gdbtk/library/bpwin.itb 2002/03/07 06:06:18 1.12 --- gdb/gdbtk/library/bpwin.itb 2002/03/14 17:03:16 *************** body BpWin::constructor {args} { *** 26,29 **** --- 26,35 ---- build_win eval itk_initialize $args + + # The scrolledframe uses a canvas, which doesn't properly + # calculate an initial size, so we must set a default + # window size here. ManagedWin could override this still + # if there is a user preference for the geometry. + wm geometry $_top 350x165 debug "done building" }