cominglately 2015-10-29 10:08 采纳率: 14.3%
浏览 643

ubuntu登陆glade时,报错怎么个情况

(glade:32828): Gtk-WARNING **: Content added to the action area of a dialog using header bars

(glade:32828): Gtk-WARNING **: Content added to the action area of a dialog using header bars
GladeUI-Message: 20 missing displayable value for GtkWidget::AtkObject::accessible-role
GladeUI-Message: 1 missing displayable value for GtkButtonBox::layout-style
GladeUI-Message: 1 missing displayable value for GtkScrolledWindow::hscrollbar-policy
GladeUI-Message: 1 missing displayable value for GtkCellRendererAccel::accel-mode
GladeUI-Message: Glade needs artwork; a default icon will be used for the following classes:
GtkApplicationWindowneeds an icon named 'widget-gtk-applicationwindow

  • 写回答

1条回答 默认 最新

  • 你知我知皆知 2024-08-04 14:54
    关注

    以下回答参考 皆我百晓生券券喵儿 等免费微信小程序相关内容作答,并由本人整理回复。

    这个错误信息表明在使用GLADE(图形用户界面生成器)创建的GUI中,有部分控件没有设置合适的显示属性。具体来说:

    1. Gtk-WARNING **: Content added to the action area of a dialog using header bars 这条消息表示在创建对话框时,尝试添加内容到具有头部栏的动作区域,但缺少一些必要的属性。

    2. GladeUI-Message: 20 missing displayable value for GtkWidget::AtkObject::accessible-role 表示在创建组件时,可能缺少accessible-role属性。

    3. GladeUI-Message: 1 missing displayable value for GtkButtonBox::layout-style 表示在创建按钮组时,可能缺少layout-style属性。

    4. GladeUI-Message: 1 missing displayable value for GtkScrolledWindow::hscrollbar-policy 表示在创建滚动窗口时,可能缺少hscrollbar-policy属性。

    5. GladeUI-Message: 1 missing displayable value for GtkCellRendererAccel::accel-mode 表示在创建可加速文本单元格时,可能缺少accel-mode属性。

    6. GladeUI-Message: Glade needs artwork; a default icon will be used for the following classes: 表示在创建类时,可能缺少图标,或者图标已损坏或不存在。

    解决这些问题的方法取决于你使用的GLADE版本和你使用的环境。以下是一些通用的建议:

    1. 检查你的项目目录下的glib.h文件,看看是否有GtkAccessibleRoleGtkButtonBoxLayoutStyle等定义。
    2. 如果这些属性是通过XML配置的,请检查你的XML配置文件是否正确。
    3. 确保所有的组件都有正确的accessible-nameaccessible-desc等属性,并且它们被正确地关联在一起。
    4. 检查你的应用程序是否有足够的内存来运行,因为过多的内存可能导致GLADE崩溃。

    如果你是在使用Ubuntu,你可以尝试安装gnome-shell-extension-manager,它可以帮助你在系统中查找并修复与GLADE相关的依赖项问题。另外,你也可以尝试更新你的GLADE库,确保你正在使用的版本是最新的。

    评论

报告相同问题?