[hyena/gtk3] ListView: Fix NRE when accessing the Theme property
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena/gtk3] ListView: Fix NRE when accessing the Theme property
- Date: Mon, 25 Jul 2011 20:37:52 +0000 (UTC)
commit 81e3fd559638704f9c6760ea274ed579b81593a3
Author: Olivier Dufour <olivier duff gmail com>
Date: Sun Jul 24 21:49:53 2011 +0200
ListView: Fix NRE when accessing the Theme property
The StyleSet signal in GTK 2 was fired when the widget was first
created. This is not the case with the new StyleUpdated signal in GTK 3.
So we need to call OnStyleUpdated in the ListView constructor, to make
sure things are properly initialized.
Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>
Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs
index 1f35928..08db88e 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ListView/ListView.cs
@@ -47,6 +47,7 @@ namespace Hyena.Data.Gui
HasTooltip = true;
QueryTooltip += OnQueryTooltip;
DirectionChanged += (o, a) => SetDirection ();
+ OnStyleUpdated ();
}
private void OnQueryTooltip (object o, Gtk.QueryTooltipArgs args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]