aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-item.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-02 07:09:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-02 22:35:03 +0800
commit433eac7844481b8ceda0bae8bf08f6bb623185b0 (patch)
treed66a04ad4fa676b4bfce762dee09a82f4434d374 /widgets/table/e-table-header-item.c
parente6c6cbdfb5fd5723ff840b24b29690235be0d74d (diff)
downloadgsoc2013-evolution-433eac7844481b8ceda0bae8bf08f6bb623185b0.tar.gz
gsoc2013-evolution-433eac7844481b8ceda0bae8bf08f6bb623185b0.tar.zst
gsoc2013-evolution-433eac7844481b8ceda0bae8bf08f6bb623185b0.zip
More code cleanup.
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r--widgets/table/e-table-header-item.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 51bd49a37b..190fccb846 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -151,7 +151,7 @@ ethi_dispose (GObject *object){
(*G_OBJECT_CLASS (ethi_parent_class)->dispose) (object);
}
-static int
+static gint
e_table_header_item_get_height (ETableHeaderItem *ethi)
{
ETableHeader *eth;
@@ -387,7 +387,7 @@ ethi_get_property (GObject *object,
}
}
-static int
+static gint
ethi_find_col_by_x (ETableHeaderItem *ethi, gint x)
{
const gint cols = e_table_header_count (ethi->eth);
@@ -417,7 +417,7 @@ ethi_find_col_by_x (ETableHeaderItem *ethi, gint x)
return cols - 1;
}
-static int
+static gint
ethi_find_col_by_x_nearest (ETableHeaderItem *ethi, gint x)
{
const gint cols = e_table_header_count (ethi->eth);
@@ -1685,7 +1685,7 @@ ethi_change_sort_state (ETableHeaderItem *ethi, ETableCol *col)
/*
* Handles the events on the ETableHeaderItem, particularly it handles resizing
*/
-static int
+static gint
ethi_event (GnomeCanvasItem *item, GdkEvent *e)
{
ETableHeaderItem *ethi = E_TABLE_HEADER_ITEM (item);
@@ -1782,7 +1782,7 @@ ethi_event (GnomeCanvasItem *item, GdkEvent *e)
gint width = 0;
g_signal_emit_by_name (ethi->eth,
"request_width",
- (int)ethi->resize_col, &width);
+ (gint)ethi->resize_col, &width);
/* Add 10 to stop it from "..."ing */
e_table_header_set_size (ethi->eth, ethi->resize_col, width + 10);