[hyena] [ListView] Clip the cell rendering



commit 67dd28ca54da1e628e17d7c9cdd572cdc8fba44d
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Wed Oct 13 15:11:57 2010 -0500

    [ListView] Clip the cell rendering

 .../Hyena.Data.Gui/ListView/ListView_Rendering.cs  |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index 02ac248..5f0288c 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -508,6 +508,8 @@ namespace Hyena.Data.Gui
 
                 cairo_context.Save ();
                 cairo_context.Translate (child_allocation.X, child_allocation.Y);
+                cairo_context.Rectangle (0, 0, child_allocation.Width, child_allocation.Height);
+                cairo_context.Clip ();
                 layout_child.Render (cell_context);
                 cairo_context.Restore ();
             }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]