Default cell widths?

Dave Peticolas dave@krondo.com
02 Dec 2001 00:17:04 -0800


--=-Rlx/+4SnhORKgsxXBtC1
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2001-12-01 at 21:16, Derek Atkins wrote:
> I'm trying to figure out how the Gnucash Register sets default
> cell widths.  During gnc_table_init_gui() it loads the header
> widths from the global option "reg_column_widths", but I can't
> find any place where that option is initialized for the first
> time.  If the user has no saved options, the cells still seem
> to have _some_ default width; where are those set?  For example,
> the Reconcile Cell is extremely narrow -- where is this width
> configured?

As you seem to have discovered, the cell default
widths are configued via sample text. The reason
for this is that setting arbitrary values for defaults
is brittle in the face of different font and i18n settings
for different users.

dave


--=-Rlx/+4SnhORKgsxXBtC1
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA8CeOA5effKKCmfpIRAgmXAJ4gErbf9qlRhIuXRB4TRFtBifA6lgCggCiE
ol1yiQJgSSV/kGtYQKan6WQ=
=6KAM
-----END PGP SIGNATURE-----

--=-Rlx/+4SnhORKgsxXBtC1--