diff options
author | Alex Corrado <alexc@xamarin.com> | 2013-05-16 00:49:44 +0400 |
---|---|---|
committer | Alex Corrado <alexc@xamarin.com> | 2013-05-16 00:49:44 +0400 |
commit | 4aaa406808c0dec8127d319032601bf6c62b352f (patch) | |
tree | f726d0f7b2c82057ab8d9738a99074c9cd614372 /Xwt.Gtk/Xwt.GtkBackend.CellViews | |
parent | e408bba0047d20a2313c51068a73476253afd077 (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.cs | 2 |
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)); |