[hyena] [Hyena.Gui] Avoid unnecessary FontDescription accesses
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] [Hyena.Gui] Avoid unnecessary FontDescription accesses
- Date: Thu, 9 Dec 2010 01:08:11 +0000 (UTC)
commit d4cdb64b4aed7d2a9f71f9f2b123babed6a6ab30
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Dec 8 18:30:06 2010 -0600
[Hyena.Gui] Avoid unnecessary FontDescription accesses
.../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 233ab1d..08cd773 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -133,11 +133,11 @@ namespace Hyena.Data.Gui
if (pango_layout == null) {
pango_layout = CairoExtensions.CreateLayout (this, cairo_context);
+ cell_context.FontDescription = pango_layout.FontDescription;
+ cell_context.Layout = pango_layout;
}
cell_context.Context = cairo_context;
- cell_context.Layout = pango_layout;
- cell_context.FontDescription = pango_layout.FontDescription;
// FIXME: legacy list foo
if (ViewLayout == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]