[hyena] ColumnHeaderCellText: Make sure the font weight follows the GTK theme
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] ColumnHeaderCellText: Make sure the font weight follows the GTK theme
- Date: Thu, 12 Jun 2014 14:59:52 +0000 (UTC)
commit 2ecf26513322dec6c0bf68352506f5c74885de83
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sat Jun 7 18:46:12 2014 +0200
ColumnHeaderCellText: Make sure the font weight follows the GTK theme
ColumnCellText sets the font weight to normal by default, but the GTK
theme might have a different weight set for column headers (Adwaita has
bold).
Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs
b/Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs
index 48864fe..b45c738 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ColumnHeaderCellText.cs
@@ -58,6 +58,8 @@ namespace Hyena.Data.Gui
return;
}
+ FontWeight = context.Widget.StyleContext.GetFont (context.State).Weight;
+
if (!has_sort) {
base.Render (context, cellWidth, cellHeight);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]