This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Set bpwin initial size


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]