我在 GJS 中定义了一个 GtkEntry,如下所示:
let myEntry = new Gtk.Entry({
hexpand: true,
placeholder_text: "Type here...",
secondary_icon_name: "dialog-error-symbolic",
secondary_icon_tooltip_text: "Send...",
secondary_icon_activatable: true,
secondary_icon_sensitive: true
});
但是,工具提示永远不会显示。没有错误被打印到日志中,我已经梳理了文档的属性和功能,我错过了什么吗?
更新
get_icon_at_pos()
这是处理程序使用的一个已知错误, Daniel Boles 在 2017-07-31::query-tooltip
已将修复推送到上游。