]> git.saurik.com Git - wxWidgets.git/commit
Notify GtkTreeView if a node stops being a parent.
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 27 Aug 2011 13:24:25 +0000 (13:24 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 27 Aug 2011 13:24:25 +0000 (13:24 +0000)
commit15d1fd3f6f5083ccad4a338084f6ee7802f6a0dc
tree2ba5ce0619bc3c1940307bec63c4c364258911b6
parentd0cfefc4e08e5485f5fe7a61cc9e77be22066a58
Notify GtkTreeView if a node stops being a parent.

GtkTreeView requires the row-has-child-toggled signal to be emitted in
this situation, so do it from ItemDeleted handler.

Curiously, it handles adding the first child automatically. That's good,
because detecting this situation when adding the first child wouldn't be
trivial and so not having to do it is a plus. (Emitting it on every node
addition doesn't sound like a terribly bright idea.)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/dataview.cpp