aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/e-table/ChangeLog6
-rw-r--r--widgets/e-table/e-table-header-item.c4
-rw-r--r--widgets/table/e-table-header-item.c4
3 files changed, 10 insertions, 4 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index 6a7fd3a972..deb498d9d6 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,9 @@
+2000-09-15 Iain Holmes <iain@helixcode.com>
+
+ * e-table-header-item.c (draw_button): Replace the NULL in the
+ gtk_paint_box call with a pointer to the canvas. Fixes a crash
+ reported and solved by Radek
+
2000-09-14 Peter Williams <peter@beta.newton.cx>
* e-cell-text.c (ect_draw): Typo fix.
diff --git a/widgets/e-table/e-table-header-item.c b/widgets/e-table/e-table-header-item.c
index 93e787dffc..ec25e0d0f0 100644
--- a/widgets/e-table/e-table-header-item.c
+++ b/widgets/e-table/e-table-header-item.c
@@ -730,8 +730,8 @@ draw_button (ETableHeaderItem *ethi, ETableCol *col,
gtk_paint_box (style, drawable,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
- &clip, NULL, "button",
- x, y, width, height);
+ &clip, GTK_WIDGET (GNOME_CANVAS_ITEM (ethi)->canvas),
+ "button", x, y, width, height);
clip.x = x + HEADER_PADDING / 2;
clip.y = y + HEADER_PADDING / 2;
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 93e787dffc..ec25e0d0f0 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -730,8 +730,8 @@ draw_button (ETableHeaderItem *ethi, ETableCol *col,
gtk_paint_box (style, drawable,
GTK_STATE_NORMAL, GTK_SHADOW_OUT,
- &clip, NULL, "button",
- x, y, width, height);
+ &clip, GTK_WIDGET (GNOME_CANVAS_ITEM (ethi)->canvas),
+ "button", x, y, width, height);
clip.x = x + HEADER_PADDING / 2;
clip.y = y + HEADER_PADDING / 2;