[hyena/gtk3] ListView: Fix coordinates in OnDrawn
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena/gtk3] ListView: Fix coordinates in OnDrawn
- Date: Wed, 27 Jul 2011 20:42:07 +0000 (UTC)
commit 245b13ef0bf92611e8eccf0f2e2d3c712364c01b
Author: Olivier Dufour <olivier duff gmail com>
Date: Wed Jul 27 19:44:34 2011 +0200
ListView: Fix coordinates in OnDrawn
.../Hyena.Data.Gui/ListView/ListView_Rendering.cs | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index ee941fe..91a36d0 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -134,7 +134,7 @@ namespace Hyena.Data.Gui
StyleContext.Save ();
StyleContext.AddClass ("view");
- StyleContext.RenderBackground (cr, Allocation.X, Allocation.Y, Allocation.Width, Allocation.Height);
+ StyleContext.RenderBackground (cr, 0, 0, Allocation.Width, Allocation.Height);
// FIXME: ViewLayout will never be null in the future but we'll need
// to deterministically render a header somehow...
@@ -147,17 +147,16 @@ namespace Hyena.Data.Gui
// FIXME: ViewLayout will never be null in
// the future, PaintList will go away
if (ViewLayout == null) {
- PaintList (cr, Allocation);
+ PaintList (cr, new Gdk.Rectangle (0, 0, Allocation.Width, Allocation.Height));
} else {
- PaintView (cr, (Rect)Allocation);
+ PaintView (cr, new Rect (0.0, 0.0, Allocation.Width, Allocation.Height));
}
}
- StyleContext.RenderFrame (cr, Allocation.X, Allocation.Y, Allocation.Width, Allocation.Height);
+ StyleContext.RenderFrame (cr, 0, 0, Allocation.Width, Allocation.Height);
PaintDraggingColumn (cr);
StyleContext.Restore ();
-
return true;
}
@@ -167,7 +166,7 @@ namespace Hyena.Data.Gui
{
Rectangle clip = header_rendering_alloc;
clip.Height += Theme.BorderWidth;
- clip.Intersect (Allocation);
+ clip.Intersect (new Gdk.Rectangle (0, 0, Allocation.Width, Allocation.Height));
cr.Rectangle (clip.X, clip.Y, clip.Width, clip.Height);
cr.Clip ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]