Gtk Sharp - Treeview 节点有时不会展开
对于出现以下问题的模糊条件,提前表示歉意。它非常断断续续,我还没有确定一套一致的步骤来重现它。 (这就是为什么我要求一些可能导致它的一般或常见的事情)
我正在处理的应用程序由 MonoDevelop.Components.Docking
停靠框架组成。其中一个框架中有一组选项卡式面板,其中一个面板中有一个 GtkTreeView
。有时,单击 + 按钮时,Treeview 的节点不会展开。在重新启动应用程序之前,这种情况不会消失。
然而,由于我无法始终如一地重现它,所以我有点不知道要寻找什么/搞乱它来修复它。那么,是否有人对通常会导致节点单击时不展开的原因有任何想法?或者我应该尝试什么更好的步骤来重现它?
Sorry in advance for the vague conditions in which the problem below occurs. It is very intermittent, and I have not pinned down a consistent set of steps that reproduce it yet. (Which is why I'm asking for some general or common things that might cause it)
The application I'm working on consists of MonoDevelop.Components.Docking
dock frames. There is a tabbed group of panels in one if the frames, and one of them has a GtkTreeView
in it. Every now and then, the nodes of the Treeview will not expand when clicking on the + button. This does not go away until restarting the application.
However, since I have not been able to consistently reproduce it, I'm kind of at a loss of what to look for/mess with to fix it. So does anyone have any ideas on what might generally cause the nodes to not expand when clicked? Or any better steps I should try in order to reproduce it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现当 TreeView 中存在禁用节点时会发生这种情况。就我而言,它是 MonoDevelop 解决方案板中的一个项目,被设置为不在当前配置中构建。当我删除该项目时,TreeView 中的所有其他节点立即重新开始工作。
I have found this occurs when a disabled node is in the TreeView. In my case it was a project in the solution pad of MonoDevelop that was set to not build in the current configuration. When I removed the project, all other nodes in the TreeView started working again immediately.
您可以使用向右/向左箭头键来展开/折叠节点。
它可能与 Gtk bug 有关:
https://bugzilla.gnome.org/show_bug。 cgi?id=675835
最近已修复:
http://git.gnome.org/browse/gtk+/commit/gtk?h=gtk-2-24&id=b32a9eb691920f21ad3b9127c833aaba15727c4b
You can use the arrow right/left keys to expand/collapse nodes.
It may be related to a Gtk bug:
https://bugzilla.gnome.org/show_bug.cgi?id=675835
which was fixed recently:
http://git.gnome.org/browse/gtk+/commit/gtk?h=gtk-2-24&id=b32a9eb691920f21ad3b9127c833aaba15727c4b