[hyena] ColumnCellText: Set the correct StateFlags on the StyleContext
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] ColumnCellText: Set the correct StateFlags on the StyleContext
- Date: Thu, 12 Jun 2014 19:50:20 +0000 (UTC)
commit 295c3f1bb56a434fc773175ab32bd1c2bf9f7aad
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Thu Jun 12 21:37:54 2014 +0200
ColumnCellText: Set the correct StateFlags on the StyleContext
This ensures that the text is in the right color when the cell is
selected.
This fixes a regression introduced in commit 4f76fab0, which
causes the cell state to be ignored when drawing with RenderLayout.
Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs b/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
index 111e37a..62bd413 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ColumnCellText.cs
@@ -107,6 +107,7 @@ namespace Hyena.Data.Gui
}
int y_pos = ((int)cellHeight - text_height) / 2;
+ context.StyleContext.State = context.State;
context.StyleContext.RenderLayout (context.Context, Padding.Left, y_pos, context.Layout);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]