aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-utils.h
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-header-utils.h
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-header-utils.h')
-rw-r--r--widgets/table/e-table-header-utils.h38
1 files changed, 26 insertions, 12 deletions
diff --git a/widgets/table/e-table-header-utils.h b/widgets/table/e-table-header-utils.h
index bbfb1ee17b..105a14f86a 100644
--- a/widgets/table/e-table-header-utils.h
+++ b/widgets/table/e-table-header-utils.h
@@ -25,18 +25,32 @@
#define E_TABLE_HEADER_UTILS_H
#include <gal/e-table/e-table-col.h>
-
-int e_table_header_compute_height (ETableCol *ecol, GtkStyle *style, GdkFont *font);
-
-void e_table_header_draw_button (GdkDrawable *drawable, ETableCol *ecol,
- GtkStyle *style, GdkFont *font, GtkStateType state,
- GtkWidget *widget, GdkGC *gc,
- int x, int y, int width, int height,
- int button_width, int button_height,
- ETableColArrow arrow);
-
-void e_table_draw_elided_string (GdkDrawable *drawable, GdkFont *font, GdkGC *gc,
- int x, int y, const char *str, int max_width, gboolean center);
+double e_table_header_compute_height (ETableCol *ecol,
+ GtkStyle *style,
+ GdkFont *font);
+double e_table_header_width_extras (GtkStyle *style);
+void e_table_header_draw_button (GdkDrawable *drawable,
+ ETableCol *ecol,
+ GtkStyle *style,
+ GdkFont *font,
+ GtkStateType state,
+ GtkWidget *widget,
+ GdkGC *gc,
+ int x,
+ int y,
+ int width,
+ int height,
+ int button_width,
+ int button_height,
+ ETableColArrow arrow);
+void e_table_draw_elided_string (GdkDrawable *drawable,
+ GdkFont *font,
+ GdkGC *gc,
+ int x,
+ int y,
+ const char *str,
+ int max_width,
+ gboolean center);