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-item.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-item.c')
-rw-r--r-- | widgets/table/e-table-item.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 352037a249..7eb0b07421 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -1474,6 +1474,11 @@ _do_tooltip (ETableItem *eti) int x = 0, y = 0; int i; + if (eti->tooltip->window) { + gtk_widget_destroy (eti->tooltip->window); + eti->tooltip->window = NULL; + } + if (eti_editing (eti)) return FALSE; @@ -1723,6 +1728,11 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) "cursor_col", &cursor_col, NULL); + if (eti->tooltip->window) { + gtk_widget_destroy (eti->tooltip->window); + eti->tooltip->window = NULL; + } + if (cursor_col == -1) return FALSE; @@ -1764,6 +1774,10 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) case GDK_Tab: case GDK_KP_Tab: case GDK_ISO_Left_Tab: + /* Let tab send you to the next widget. */ + return_val = FALSE; + break; +#if 0 if ((e->key.state & GDK_SHIFT_MASK) != 0){ /* shift tab */ if (cursor_col != view_to_model_col(eti, 0)) @@ -1790,6 +1804,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) e_table_item_enter_edit (eti, model_to_view_col(eti, cursor_col), model_to_view_row(eti, cursor_row)); } break; +#endif case GDK_Return: case GDK_KP_Enter: |