public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Set bpwin initial size
@ 2002-03-14  9:11 Keith Seitz
  0 siblings, 0 replies; only message in thread
From: Keith Seitz @ 2002-03-14  9:11 UTC (permalink / raw)
  To: Insight Maling List

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  <keiths@redhat.com>

	* 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"
  }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-14 17:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-14  9:11 [PATCH] Set bpwin initial size Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).