<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:media="http://search.yahoo.com/mrss/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gtk - 四号程序员</title>
	<atom:link href="https://www.coder4.com/archives/tag/gtk/feed" rel="self" type="application/rss+xml" />
	<link>https://www.coder4.com</link>
	<description>Keep It Simple and Stupid</description>
	<lastBuildDate>Fri, 16 Dec 2011 14:51:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>GtkTextView中文本不对齐的问题</title>
		<link>https://www.coder4.com/archives/1055</link>
					<comments>https://www.coder4.com/archives/1055#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sun, 10 Oct 2010 07:40:57 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[GtkTextView]]></category>
		<category><![CDATA[字体对齐]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1055</guid>

					<description><![CDATA[在stdout下用printf等输出很好的，到了GtkTextView就不对劲了，经过检查，是字体的问题。 默认使用中文字体，就会出现不对齐的情况。 如下解决： PangoFontDescription *mFontText; mFontText = pango_font_description_from_string("Monospace 10");//设置字体 gtk_widget_modify_font(mText, mFontText);[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1055/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>在GTK中，如果定时让程序去作某件事，使用g_timeout_add</title>
		<link>https://www.coder4.com/archives/1049</link>
					<comments>https://www.coder4.com/archives/1049#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 09 Oct 2010 02:50:28 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[图形界面开发]]></category>
		<category><![CDATA[多线程]]></category>
		<category><![CDATA[定时]]></category>
		<category><![CDATA[定时去做某事]]></category>
		<category><![CDATA[实现]]></category>
		<category><![CDATA[源代码]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1049</guid>

					<description><![CDATA[转载自：http://blog.csdn.net/ustcxiangchun/archive/2009/09/01/4508086.aspx 这个例子的作用就是把当前时间显示到窗口中，即显示了一个实时时钟。 //~~~~~~~ begin of program ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #include &#60;cairo.h&#62; #include &#60;gtk/gtk.h&#62; #include &#60;time.h[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1049/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>GTK+中如何禁用按钮、文本框等Widget</title>
		<link>https://www.coder4.com/archives/1023</link>
					<comments>https://www.coder4.com/archives/1023#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Sat, 02 Oct 2010 02:38:49 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[按钮]]></category>
		<category><![CDATA[禁用]]></category>
		<category><![CDATA[禁用按钮]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1023</guid>

					<description><![CDATA[gtk_widget_set_sensitive(GtkWidget* widget, TRUE/FALSE);[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1023/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>GTK+容器管理--GtkAlignment</title>
		<link>https://www.coder4.com/archives/1021</link>
					<comments>https://www.coder4.com/archives/1021#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 01 Oct 2010 07:31:23 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[GtkAlignment]]></category>
		<category><![CDATA[GUI]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1021</guid>

					<description><![CDATA[不像vbox等，GtkAlignment中只能放入一个Widget，但是它可以按照百分比控制这个元素处于Align元素的哪个位置。 示例代码如下： 最终的效果是：OK和Cancel始终处于窗体右下角。 #include &#60;gtk/gtk.h&#62; int main(int argc, char *argv[]) { GtkWidget* window; GtkWidget* align; GtkWidget* hbox; GtkWidget* btn1; Gtk[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1021/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>GTK+容器管理器--table</title>
		<link>https://www.coder4.com/archives/1019</link>
					<comments>https://www.coder4.com/archives/1019#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 01 Oct 2010 06:45:13 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[容器管理]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1019</guid>

					<description><![CDATA[#include &#60;gtk/gtk.h&#62; int main(int argc, char *argv[]) { GtkWidget* window; GtkWidget* table; GtkWidget* button[4][4]; char* button_title[4][4] = { { "7", "8", "9", "/" }, { "4", "5", "6", "*" }, { "1", "2", "3", "-" }, { "0", ".", "="[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1019/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>GTK+的固定容器管理器---fixed</title>
		<link>https://www.coder4.com/archives/1015</link>
					<comments>https://www.coder4.com/archives/1015#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Wed, 29 Sep 2010 16:09:50 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[gtk]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1015</guid>

					<description><![CDATA[#include &#60;gtk/gtk.h&#62; int main(int argc, char *argv[]) { GtkWidget* window; GtkWidget* fixed; GtkWidget* button1; GtkWidget* button2; //设置主窗体 gtk_init(&#38;argc, &#38;argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1015/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux下编译安装GTK+</title>
		<link>https://www.coder4.com/archives/1003</link>
					<comments>https://www.coder4.com/archives/1003#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Tue, 21 Sep 2010 15:51:07 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[gtk]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=1003</guid>

					<description><![CDATA[1、编译安装glib wget http://ftp.gnome.org/pub/gnome/sources/glib/2.24/glib-2.24.2.tar.bz2 tar -xjvf glib-2.24.2.tar.bz2 cd glib-2.24.2/ ./configure --prefix=/usr make -j &#38;&#38; make install 2、安装atk,cairo,tiff sudo apt-get install sudo apt-get i[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/1003/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>一个超级赞的GTK入门教程</title>
		<link>https://www.coder4.com/archives/337</link>
					<comments>https://www.coder4.com/archives/337#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 05 Feb 2010 08:08:25 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gtk]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=337</guid>

					<description><![CDATA[http://zetcode.com/tutorials/gtktutorial/chinese/ 非常棒！[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/337/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>GTK开发之文本框Entry,按钮Button,容器hbox,vbox,fixed的使用</title>
		<link>https://www.coder4.com/archives/335</link>
					<comments>https://www.coder4.com/archives/335#comments</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 05 Feb 2010 07:56:24 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[entry]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[hbox]]></category>
		<category><![CDATA[vbox]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=335</guid>

					<description><![CDATA[[cpp] /* * main2.cc * * Created on: 2010-2-5 * Description: * Copyright: 2010 @ ICT Li Heyuan */ #include &#60;gtk/gtk.h&#62; typedef struct { GtkWidget *user, *pass; } pointer; void closeApp(GtkWidget *window, gpointer data) { gtk_mai[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/335/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>GTK开发--如何调整Button按钮大小</title>
		<link>https://www.coder4.com/archives/333</link>
					<comments>https://www.coder4.com/archives/333#respond</comments>
		
		<dc:creator><![CDATA[coder4]]></dc:creator>
		<pubDate>Fri, 05 Feb 2010 07:27:53 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[按钮大小]]></category>
		<guid isPermaLink="false">http://www.coder4.com/?p=333</guid>

					<description><![CDATA[解决方案：只找到一个一般的方法，把按钮放入fixed的容器中。 fixed = gtk_fixed_new();//一个fixed的容器，放入button gtk_fixed_put(GTK_FIXED(fixed), button, 200, 0); gtk_box_pack_start(GTK_BOX(vbox), fixed, FALSE, FALSE, 5); 然后把vbox放入window，运行后就能看到效果了。[......] 继续阅读]]></description>
		
					<wfw:commentRss>https://www.coder4.com/archives/333/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
