aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-01-15 06:33:44 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-01-15 06:33:44 +0800
commit962c8a0d9fcc069cb851a70d52298353e1ec18b5 (patch)
tree4ac43234beb1b7ad09516b4afb14af70d84a5d8a
parent387af10dfa45b694e21ca1abc00f469bd30a1aa2 (diff)
downloadgsoc2013-evolution-962c8a0d9fcc069cb851a70d52298353e1ec18b5.tar.gz
gsoc2013-evolution-962c8a0d9fcc069cb851a70d52298353e1ec18b5.tar.zst
gsoc2013-evolution-962c8a0d9fcc069cb851a70d52298353e1ec18b5.zip
If we set a clip rectangle, clear it after we've finished.
2003-01-15 Not Zed <NotZed@Ximian.com> * e-cell-tree.c (ect_draw): If we set a clip rectangle, clear it after we've finished. svn path=/trunk/; revision=19467
-rw-r--r--widgets/table/e-cell-tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c
index b437b49ac2..a1b92ba7e6 100644
--- a/widgets/table/e-cell-tree.c
+++ b/widgets/table/e-cell-tree.c
@@ -198,7 +198,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
ETreeModel *tree_model = e_cell_tree_get_tree_model(ecell_view->e_table_model, row);
ETreeTableAdapter *tree_table_adapter = e_cell_tree_get_tree_table_adapter(ecell_view->e_table_model, row);
ETreePath node;
- GdkRectangle rect, *clip_rect;
+ GdkRectangle rect, *clip_rect = NULL;
GtkWidget *canvas = GTK_WIDGET (tree_view->canvas);
GdkGC *fg_gc = canvas->style->fg_gc[GTK_STATE_ACTIVE];
GdkColor *foreground;
@@ -333,6 +333,11 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
e_cell_draw (tree_view->subcell_view, drawable,
model_col, view_col, row, flags,
x1 + subcell_offset, y1, x2, y2);
+
+ if (clip_rect) {
+ gdk_gc_set_clip_rectangle (tree_view->gc, NULL);
+ gdk_gc_set_clip_rectangle (fg_gc, NULL);
+ }
}
/*