[hyena/gtk3] ListView: Use Theme.DrawFrameBorder to draw the border
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena/gtk3] ListView: Use Theme.DrawFrameBorder to draw the border
- Date: Sun, 18 Dec 2011 13:53:39 +0000 (UTC)
commit 7c9584ad8f2e59fa53d3d7bce49da01419d33f4c
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sun Dec 18 14:49:51 2011 +0100
ListView: Use Theme.DrawFrameBorder to draw the border
Apparently StyleContext.RenderFrame doesn't do what we want, so we go
back to the method we were using with GTK+ 2.
Also remove some unnecessary object instanciation: Allocation is already
a Gdk.Rectangle.
.../Hyena.Data.Gui/ListView/ListView_Rendering.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index 7f4cd00..ff7bb2c 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -147,13 +147,13 @@ namespace Hyena.Data.Gui
// FIXME: ViewLayout will never be null in
// the future, PaintList will go away
if (ViewLayout == null) {
- PaintList (cr, new Gdk.Rectangle (0, 0, Allocation.Width, Allocation.Height));
+ PaintList (cr, Allocation);
} else {
PaintView (cr, new Rect (0.0, 0.0, Allocation.Width, Allocation.Height));
}
}
- StyleContext.RenderFrame (cr, 0, 0, Allocation.Width, Allocation.Height);
+ Theme.DrawFrameBorder (cr, Allocation);
PaintDraggingColumn (cr);
StyleContext.Restore ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]