Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Ubuntu 的时间和日期 UI 上隐藏 GtkSpinButton,以便用户只能编辑时区,但根本没有成功!我可以设置标签和东西的可见性属性,它工作得很好。但是当我编辑动态旋转按钮的可见性时,用户可以编辑小时、分钟和秒,设置 False 就不起作用。有任何想法吗?我在 Ubuntu 10.04 上编辑的文件位于 /usr/share/gnome-system-tools/ui/time.ui
您不打算更改安装在磁盘上的项目的 XML 文件:UI 描述文件是应用程序逻辑的一部分,而不是配置文件。
UI描述用于生成UI元素;然后应用程序将在内部操作这些元素,因此您不能只将“可见”属性值设置为 FALSE 并希望获得最好的结果。
你想要达到的只能通过修补应用程序而不显示时间UI,重新编译它并重新打包所有内容来完成。