how to hint gtk about a useful start of the focus chain

2011-08-02 Thread Stefan Kost
hi, having the focus on the right widget can make apps more productive. I feed that right now either I am missing something or gtk does not a good job at it. For odd reasons gtk prefers to focus toolbar button on new windows (which is strange and not useful imho). When trying to hint gtk+ about

Re: how gtk+ display Chinese on windows

2011-08-02 Thread David Nečas
On Tue, Aug 02, 2011 at 05:10:22PM +0800, czk wrote: > 你是如何把所谓的文档设置成为utf-8的?我想应该不是没有中文字库吧,查看gtk安装目录下的 > etc/fontconfig/fonts.com都配置了哪些字库。还是怀疑你的文本不是utf-8的。Linux平台默认统一使用utf-8,中文Windows使用GB2312(或GBK,或GB18030??),这两个系统在字符编码交互起来,真是无比dan疼。我一般用iconv手动转换。 If you post to the list please do so in the list la

Reply:Re: how gtk+ display Chinese on windows

2011-08-02 Thread 涂友武
看到中文讨论真实很亲切, 我现在面临的问题是:wireshark插件开发中,对wireshark进行汉化,大家都知道wireshark界面是采用跨平台的gtk+,所以wireshark的汉化问题就是gtk+的汉化问题。 我把文档设置称为utf-8之后,编译通过了,但是中文无法仍然无法显示,显示结果不是乱码就是空白。 望指教~ 在 2011-08-02 13:00:30,"Andy Tai" 写道: 地球人當用統一碼 2011/8/1 czk 哥们,你要确定使用大是UTF-8编码。天朝的Windows汉字使用的是GB2312编码。gtk使用pango来排版渲染文本,只认UTF-8编码。

Re: Reply:Re: how gtk+ display Chinese on windows

2011-08-02 Thread czk
你是如何把所谓的文档设置成为utf-8的?我想应该不是没有中文字库吧,查看gtk安装目录下的 etc/fontconfig/fonts.com都配置了哪些字库。还是怀疑你的文本不是utf-8的。Linux平台默认统一使用utf-8,中文Windows使用GB2312(或GBK,或GB18030??),这两个系统在字符编码交互起来,真是无比dan疼。我一般用iconv手动转换。 在 2011年8月2日 下午3:38,涂友武 写道: > 看到中文讨论真实很亲切, > > 我现在面临的问题是:wireshark插件开发中,对wireshark进行汉化,大家都知道wireshark界面是采用跨平