Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Corrado <alexc@xamarin.com>2013-05-16 00:49:44 +0400
committerAlex Corrado <alexc@xamarin.com>2013-05-16 00:49:44 +0400
commit4aaa406808c0dec8127d319032601bf6c62b352f (patch)
treef726d0f7b2c82057ab8d9738a99074c9cd614372 /Xwt.Gtk/Xwt.GtkBackend.CellViews
parente408bba0047d20a2313c51068a73476253afd077 (diff)
[Gtk] Fix a typo in CellUtil.CreateCellRenderer that caused an InvalidCastException in the test app
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend.CellViews')
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs b/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs
index 5e289e00..edcacc63 100644
--- a/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs
@@ -53,7 +53,7 @@ namespace Xwt.GtkBackend
public static Gtk.CellRenderer CreateCellRenderer (ApplicationContext actx, ICellRendererTarget col, object target, ICellViewFrontend view, Gtk.TreeModel model)
{
- if (view is ICellViewFrontend) {
+ if (view is ITextCellViewFrontend) {
var cr = new CustomCellRendererText ((ITextCellViewFrontend)view);
col.PackStart (target, cr, false);
col.SetCellDataFunc (target, cr, (cell_layout, cell, treeModel, iter) => cr.LoadData (treeModel, iter));