aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-14 06:34:36 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-14 06:34:36 +0800
commita000f7480bacf960f4cb3bdf2ff29e5f1af03f7b (patch)
tree77b32394f38cddec818f9211d56b952ddd0d3812 /widgets/table/e-table.c
parentf42cf43320589de1aaecd65f82be8a08ba67b7da (diff)
downloadgsoc2013-evolution-a000f7480bacf960f4cb3bdf2ff29e5f1af03f7b.tar
gsoc2013-evolution-a000f7480bacf960f4cb3bdf2ff29e5f1af03f7b.tar.gz
gsoc2013-evolution-a000f7480bacf960f4cb3bdf2ff29e5f1af03f7b.tar.bz2
gsoc2013-evolution-a000f7480bacf960f4cb3bdf2ff29e5f1af03f7b.tar.lz
gsoc2013-evolution-a000f7480bacf960f4cb3bdf2ff29e5f1af03f7b.tar.xz
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.c')
-rw-r--r--widgets/table/e-table.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index d0404525a8..dbf301994b 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -24,6 +24,7 @@
#include "gal/widgets/e-canvas-vbox.h"
#include "e-table.h"
#include "e-table-header-item.h"
+#include "e-table-header-utils.h"
#include "e-table-subset.h"
#include "e-table-item.h"
#include "e-table-group.h"
@@ -708,6 +709,10 @@ et_state_to_header (ETable *e_table, ETableHeader *full_header, ETableState *sta
nh = e_table_header_new ();
+ gtk_object_set(GTK_OBJECT(nh),
+ "width_extras", e_table_header_width_extras(GTK_WIDGET(e_table)->style),
+ NULL);
+
for (column = 0; column < state->col_count; column++) {
int col;