[hyena] Grow surface cache as needed (bgo#612593)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Grow surface cache as needed (bgo#612593)
- Date: Wed, 26 May 2010 02:42:04 +0000 (UTC)
commit b26d5f6ce96c42cb14439dcd069976fd9cc40208
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Sat Mar 13 16:38:00 2010 +1100
Grow surface cache as needed (bgo#612593)
src/Hyena.Gui/Hyena.Data.Gui/DataViewLayoutGrid.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Data.Gui/DataViewLayoutGrid.cs b/src/Hyena.Gui/Hyena.Data.Gui/DataViewLayoutGrid.cs
index d4d418e..2828043 100644
--- a/src/Hyena.Gui/Hyena.Data.Gui/DataViewLayoutGrid.cs
+++ b/src/Hyena.Gui/Hyena.Data.Gui/DataViewLayoutGrid.cs
@@ -39,6 +39,7 @@ namespace Hyena.Data.Gui
public int Columns { get; private set; }
public Func<DataViewChild> ChildAllocator { get; set; }
+ public event EventHandler<EventArgs<int>> ChildCountChanged;
protected override void InvalidateChildSize ()
{
@@ -68,6 +69,11 @@ namespace Hyena.Data.Gui
: 0;
ResizeChildCollection (Rows * Columns);
+
+ var handler = ChildCountChanged;
+ if (handler != null) {
+ handler (this, new EventArgs<int> (Rows * Columns));
+ }
}
protected override void InvalidateChildLayout ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]