zoukankan      html  css  js  c++  java
  • paip.解决 GtkCRITICAL **: IA__gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed

    paip.解决 Gtk-CRITICAL **: IA__gtk_widget_show: assertion `GTK_IS_WIDGET (widget)' failed
     
     作者Attilax ,  EMAIL:1466519819@qq.com 
    来源:attilax的专栏
    地址:http://blog.csdn.net/attilax




     原因:
     
     glade文件没寻找到..或者格式错误 或者控件名称错误 或者在的错误
     
     
    调试`过程:
     //
     加入以下代码.
       GError *err = NULL;
        if(0==     gtk_builder_add_from_file(pBuilder,"c:/haloc9.gtkfmt",&err))
        {
            /* Print out the error. You can use GLib's message logging */
            fprintf(stderr, "Error adding build from file. Error: %s\n", err->message);
            /* Your error handling code goes here */
        }
        
        
     解决:
     //
     根据具体的提示解决:
     比如Error adding build from file. Error: Invalid root element: 'glade-interface'
     常见的原因是glade界面文件格式是libglade格式(glade3.4以及以下都是这个格式),但是代码中是使用GtkBuilder来解析....libglade格式,要加载这个库,GladeXML使用来解析
     或者相反...
     
     
     
    “D:\AutoHotKey 中文版\AutoHotkey.exe ”  “C:\Documents and Settings\Administrator\桌面\c925\filenameFilter.ahk”
  • 相关阅读:
    委托&指针函数&回调函数
    Unity animation笔记1
    hadoop源码编译
    protocbuf的安装
    学习hadoop不错的一些文章
    moven的安装
    在Linux上安装与配置Hadoop
    linux tar命令详解
    How to contribute to hadoop common
    Ubuntu下SVN的安装
  • 原文地址:https://www.cnblogs.com/attilax/p/15199495.html
Copyright © 2011-2022 走看看