aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table-header-utils.c')
-rw-r--r--widgets/table/e-table-header-utils.c10
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.
*/