Gtk Sharp - Treeview 节点有时不会展开

发布于 2024-11-16 19:50:27 字数 354 浏览 3 评论 0原文

对于出现以下问题的模糊条件,提前表示歉意。它非常断断续续,我还没有确定一套一致的步骤来重现它。 (这就是为什么我要求一些可能导致它的一般或常见的事情)

我正在处理的应用程序由 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

春庭雪 2024-11-23 19:50:27

我发现当 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.

梦幻的心爱 2024-11-23 19:50:27

您可以使用向右/向左箭头键来展开/折叠节点。

它可能与 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文