OSDN Git Service

* library/srcwin.itb (_build_win): Add invisible frame to workaround
authorkseitz <kseitz>
Mon, 26 Jun 2006 20:44:57 +0000 (20:44 +0000)
committerkseitz <kseitz>
Mon, 26 Jun 2006 20:44:57 +0000 (20:44 +0000)
        the missing frame problem.

gdb/gdbtk/ChangeLog
gdb/gdbtk/library/srcwin.itb

index 9447644..199797a 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-26  Keith Seitz  <keiths@redhat.com>
+
+       * library/srcwin.itb (_build_win): Add invisible frame to workaround
+       the missing frame problem.
+
 2006-03-29  Brian Dessent  <brian@dessent.net>
 
        * generic/gdbtk-cmds.c: Include sys/cygwin.h if __CYGWIN__ defined.
index c8b17dc..2b0d77b 100644 (file)
@@ -1,5 +1,6 @@
 # Source window for Insight.
-# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
+# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2006 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
@@ -106,8 +107,14 @@ itcl::body SrcWin::_build_win {} {
   $_statbar.mode list insert end MIXED
   $_statbar.mode list insert end SRC+ASM
 
+  # Workaround: the three comboboxes above sometimes display with
+  # height of one pixel. Inserting an invisible frame with the required
+  # height "fixes" this...
+  frame $_statbar.strut -height 24 -width 10
+
   pack $_statbar.mode -side right -padx 10 -pady 4
-  pack $_statbar.name $_statbar.func -side left -pady 4 -padx 10
+  pack $_statbar.name $_statbar.func $_statbar.strut  \
+      -side left -pady 4 -padx 10
 
   # if user likes control on top...
   if {[pref get gdb/src/top_control]} {