diff options
author | Lluis Sanchez <llsan@microsoft.com> | 2018-02-28 15:09:41 +0300 |
---|---|---|
committer | Lluis Sanchez <llsan@microsoft.com> | 2018-02-28 15:09:41 +0300 |
commit | a1132f5527ee1147a9a20b01911c23827e2bc847 (patch) | |
tree | 841cb078d681baa5b03cb1af42c2103d3870f961 /Xwt.Gtk | |
parent | 4cf38a384c65286edf504cd7ab9ce62b5f3271ad (diff) |
Add QueueResize method to CanvasCellView
Diffstat (limited to 'Xwt.Gtk')
-rw-r--r-- | Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs | 1 | ||||
-rw-r--r-- | Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs | 5 | ||||
-rw-r--r-- | Xwt.Gtk/Xwt.GtkBackend/ComboBoxBackend.cs | 4 | ||||
-rw-r--r-- | Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs | 6 |
4 files changed, 16 insertions, 0 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs b/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs index 2b6067cd..1bcf6911 100644 --- a/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs +++ b/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellUtil.cs @@ -158,6 +158,7 @@ namespace Xwt.GtkBackend Gtk.Widget EventRootWidget { get; } bool GetCellPosition (Gtk.CellRenderer r, int ex, int ey, out int cx, out int cy, out Gtk.TreeIter iter); void QueueDraw (object target, Gtk.TreeIter iter); + void QueueResize (object target, Gtk.TreeIter iter); TreeModel Model { get; } Gtk.TreeIter PressedIter { get; set; } CellViewBackend PressedCell { get; set; } diff --git a/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs b/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs index afaa556a..87fe116b 100644 --- a/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs +++ b/Xwt.Gtk/Xwt.GtkBackend.CellViews/CellViewBackend.cs @@ -366,6 +366,11 @@ namespace Xwt.GtkBackend { rendererTarget.QueueDraw (target, CurrentIter); } + + public void QueueResize () + { + rendererTarget.QueueResize (target, CurrentIter); + } } } diff --git a/Xwt.Gtk/Xwt.GtkBackend/ComboBoxBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/ComboBoxBackend.cs index dfed802e..1f00511a 100644 --- a/Xwt.Gtk/Xwt.GtkBackend/ComboBoxBackend.cs +++ b/Xwt.Gtk/Xwt.GtkBackend/ComboBoxBackend.cs @@ -184,6 +184,10 @@ namespace Xwt.GtkBackend { } + public void QueueResize (object target, Gtk.TreeIter iter) + { + } + #endregion } } diff --git a/Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs index 77607a73..2be10b7c 100644 --- a/Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs +++ b/Xwt.Gtk/Xwt.GtkBackend/TableViewBackend.cs @@ -497,6 +497,12 @@ namespace Xwt.GtkBackend Widget.QueueDrawArea (x, y, r.Width, r.Height); } + public void QueueResize (object target, Gtk.TreeIter iter) + { + var path = Widget.Model.GetPath (iter); + Widget.Model.EmitRowChanged (path, iter); + } + #endregion } |