GTK电台开发问题

ubuntu 13.04,webkit里面显示的都是宋体,而且启动程序时xterm里面显示Fontconfig warning: “/etc/fonts/conf.d/50-user.conf”, line 9: reading configurations from ~/.fonts.conf is deprecated.的错误,解决方法

1
2
mkdir ~/.config/fontconfig
mv ~/.fonts.conf ~/.config/fontconfig/

Failed to load module “overlay-scrollbar”问题
是由于overlay-scrollbar引起的,可以通过卸载overlay-scrollbar解决,不过对程序不影响
GTK窗口的显示问题:

1
2
gtk_window_present (GTK_WINDOW(appViewHandle));
gtk_widget_show_all(appViewHandle);

两个必须连用,否则可能出现窗口不能在最上层显示的问题,有可能是最小化后不能恢复显示,有可能是窗口被其他窗口覆盖不能在顶端显示
另外,gtk_widget_present不要与以下函数一起用,如果一起用,也会出现上述问题

1
2
gtk_window_deiconify (GTK_WINDOW(appViewHandle));
gtk_widget_activate(appViewHandle);

至于flash的问题,先下载nspluginwrapper,还有32位的库,即:

1
2
sudo apt-get install nspluginwrapper
sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2

然后把32位的libflashplayer.so移到~/.mozilla/plugins/libflashplayer.so
然后运行

1
nspluginwrapper -i ~/.mozilla/plugins/libflashplayer.so

autogen时出错:HAVE_INTROSPECTION does not appear in AM_CONDITIONAL解决方法:

1
sudo apt-get install gobject-introspection

gtkdocize: not found错误,解决方法:

1
sudo apt-get install gtk-doc-tools

configure.ac checks: GOBJECT_INTROSPECTION_CHECK错误,解决方法:
重新构建工程即可

this macro does not exist if GObject Introspection is not installed.
in ubuntu 10.04, can install gobject-introspection (0.9.3-0ubuntu4),
if also failed, use autogen.sh to regenerate.