aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-03-30 18:30:28 +0800
committerChris Lahey <clahey@src.gnome.org>2001-03-30 18:30:28 +0800
commit90ed53edb0f3256a5d08e8dd0681938f4d83140d (patch)
tree80b7930a503123fa1e9a1ed11392b02d4b830d3f /widgets/table/e-table.c
parent0e347fdbe179247d7e641af57bb6046477fe5449 (diff)
downloadgsoc2013-evolution-90ed53edb0f3256a5d08e8dd0681938f4d83140d.tar.gz
gsoc2013-evolution-90ed53edb0f3256a5d08e8dd0681938f4d83140d.tar.zst
gsoc2013-evolution-90ed53edb0f3256a5d08e8dd0681938f4d83140d.zip
Made these use GTK_TYPE_GDK_EVENT whenever sending an event through the
2001-03-30 Christopher James Lahey <clahey@ximian.com> * e-table-group.c, e-table-header-item.c, e-table-item.c, e-table.c, e-tree.c: Made these use GTK_TYPE_GDK_EVENT whenever sending an event through the signal system instead of GTK_TYPE_POINTER. * e-table.c, e-tree.c (set_header_canvas_width): Check that none of the variables we're going to need are NULL before executing this function. svn path=/trunk/; revision=9042
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 2dcd6e7c25..b2eb4dd1fe 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -261,6 +261,9 @@ set_header_canvas_width (ETable *e_table)
{
double oldwidth, oldheight, width;
+ if (!(e_table->header_item && e_table->header_canvas && e_table->table_canvas))
+ return;
+
gnome_canvas_get_scroll_region (GNOME_CANVAS (e_table->table_canvas),
NULL, NULL, &width, NULL);
gnome_canvas_get_scroll_region (GNOME_CANVAS (e_table->header_canvas),
@@ -2098,7 +2101,7 @@ e_table_class_init (ETableClass *class)
object_class->type,
GTK_SIGNAL_OFFSET (ETableClass, double_click),
gtk_marshal_NONE__INT_INT_POINTER,
- GTK_TYPE_NONE, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER);
+ GTK_TYPE_NONE, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_GDK_EVENT);
et_signals [RIGHT_CLICK] =
gtk_signal_new ("right_click",
@@ -2106,7 +2109,7 @@ e_table_class_init (ETableClass *class)
object_class->type,
GTK_SIGNAL_OFFSET (ETableClass, right_click),
e_marshal_INT__INT_INT_POINTER,
- GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER);
+ GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_GDK_EVENT);
et_signals [CLICK] =
gtk_signal_new ("click",
@@ -2114,7 +2117,7 @@ e_table_class_init (ETableClass *class)
object_class->type,
GTK_SIGNAL_OFFSET (ETableClass, click),
e_marshal_INT__INT_INT_POINTER,
- GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER);
+ GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_GDK_EVENT);
et_signals [KEY_PRESS] =
gtk_signal_new ("key_press",
@@ -2122,7 +2125,7 @@ e_table_class_init (ETableClass *class)
object_class->type,
GTK_SIGNAL_OFFSET (ETableClass, key_press),
e_marshal_INT__INT_INT_POINTER,
- GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER);
+ GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_GDK_EVENT);
et_signals[TABLE_DRAG_BEGIN] =
gtk_signal_new ("table_drag_begin",