diff options
author | Iain Holmes <iain@src.gnome.org> | 2000-09-15 21:12:23 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2000-09-15 21:12:23 +0800 |
commit | 1cf3dc86f1b7da2c1019189f87a6c196ba6aea91 (patch) | |
tree | 4131a802d93c825727b9ae706be2df1568b108b2 /widgets | |
parent | 6ad9320356d4342e7fcf44f45f2798b2a94dac92 (diff) | |
download | gsoc2013-evolution-1cf3dc86f1b7da2c1019189f87a6c196ba6aea91.tar.gz gsoc2013-evolution-1cf3dc86f1b7da2c1019189f87a6c196ba6aea91.tar.zst gsoc2013-evolution-1cf3dc86f1b7da2c1019189f87a6c196ba6aea91.zip |
Fix a crash in draw_button.
svn path=/trunk/; revision=5444
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/e-table/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/e-table/e-table-header-item.c | 4 | ||||
-rw-r--r-- | widgets/table/e-table-header-item.c | 4 |
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; |