[hyena] Fix a visual artifact (bgo#605736)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Fix a visual artifact (bgo#605736)
- Date: Wed, 26 May 2010 02:40:03 +0000 (UTC)
commit fc85bf1689d3454ad9d22fc4a02fc465e73bce26
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Mon Jan 25 17:09:11 2010 +1100
Fix a visual artifact (bgo#605736)
.../Hyena.Data.Gui/ListView/ListView_Rendering.cs | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index f15e8ee..e529ba7 100644
--- a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -118,12 +118,6 @@ namespace Hyena.Data.Gui
PaintHeader (damage);
}
- if (HasFocus) {
- Theme.DrawFrameBorderFocused (cairo_context, Allocation);
- } else {
- Theme.DrawFrameBorder (cairo_context, Allocation);
- }
-
if (Model != null) {
// FIXME: ViewLayout will never be null in
// the future, PaintList will go away
@@ -134,6 +128,14 @@ namespace Hyena.Data.Gui
}
}
+ // Focused frame border is bolder than BorderWidth,
+ // draw it after the rows to avoid visual artifacts.
+ if (HasFocus) {
+ Theme.DrawFrameBorderFocused (cairo_context, Allocation);
+ } else {
+ Theme.DrawFrameBorder (cairo_context, Allocation);
+ }
+
PaintDraggingColumn (damage);
((IDisposable)cairo_context.Target).Dispose ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]