我在 Ubuntu 18.04 的 Geany(版本 1.32)中遇到了故障。滚动条在整个宽度(或高度)上完全变成橙色,这使其难以达到预期目的。可以解决这个问题吗?终端显示以下错误:
(geany:9576): Gtk-WARNING **: 16:34:04.511: Negative content width -15 (allocation 1, extents 8x8) while allocating gadget (node entry, owner GtkEntry)
(geany:9576): Gtk-WARNING **: 16:34:04.511: Negative content height
-11 (allocation 1, extents 6x6) while allocating gadget (node entry, owner GtkEntry)
(geany:9576): Gtk-WARNING **: 16:34:04.511: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)
(geany:9576): Gtk-WARNING **: 16:34:04.511: Negative content height -1 (allocation 1, extents 1x1) while allocating gadget (node scrolledwindow, owner GtkScrolledWindow)
(geany:9576): Gtk-CRITICAL **: 16:34:04.511: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(geany:9576): Gtk-CRITICAL **: 16:34:04.511: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed
(geany:9576): Gtk-WARNING **: 16:34:04.511: gtk_widget_size_allocate(): attempt to allocate widget with width 12 and height -28
(geany:9576): Gtk-CRITICAL **: 16:34:04.511: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
答案1
您可以从官方网站下载并安装最新的 geany: https://www.geany.org/download/releases/ 我安装 v1.35 后,这个问题就解决了。(记得在 make install v1.35 之前先删除 v1.32)