diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-12-14 06:34:36 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-12-14 06:34:36 +0800 |
commit | a000f7480bacf960f4cb3bdf2ff29e5f1af03f7b (patch) | |
tree | 77b32394f38cddec818f9211d56b952ddd0d3812 /widgets/table/e-table-header-utils.c | |
parent | f42cf43320589de1aaecd65f82be8a08ba67b7da (diff) | |
download | gsoc2013-evolution-a000f7480bacf960f4cb3bdf2ff29e5f1af03f7b.tar.gz gsoc2013-evolution-a000f7480bacf960f4cb3bdf2ff29e5f1af03f7b.tar.zst gsoc2013-evolution-a000f7480bacf960f4cb3bdf2ff29e5f1af03f7b.zip |
New function to calculate the extra pixels per column header.
2000-12-13 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-utils.c, e-table-header-utils.h
(e_table_header_width_extras): New function to calculate the extra
pixels per column header.
* e-table-header.c, e-table-header.h: Added a "width_extras"
argument which is used to calculate the correct minimum widths for
each column header after adding padding.
* e-table-item.c (_do_tooltip): Destroy the old tooltip window
when creating the new one.
(eti_event): Destroy the old tooltip window if the person presses
a key. Don't handle the tab key.
* e-table.c (et_state_to_header): Set the ETableHeader's
width_extras argument.
svn path=/trunk/; revision=6978
Diffstat (limited to 'widgets/table/e-table-header-utils.c')
-rw-r--r-- | widgets/table/e-table-header-utils.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c index 990a7a09f7..b6d35507bf 100644 --- a/widgets/table/e-table-header-utils.c +++ b/widgets/table/e-table-header-utils.c @@ -41,7 +41,7 @@ * * Return value: The height of the button, in pixels. **/ -int +double e_table_header_compute_height (ETableCol *ecol, GtkStyle *style, GdkFont *font) { int ythick; @@ -70,6 +70,14 @@ e_table_header_compute_height (ETableCol *ecol, GtkStyle *style, GdkFont *font) return height; } +double +e_table_header_width_extras (GtkStyle *style) +{ + g_return_val_if_fail (style != NULL, -1); + + return 2 * (style->klass->xthickness + HEADER_PADDING); +} + /* Creates a pixmap that is a composite of a background color and the upper-left * corner rectangle of a pixbuf. */ |