<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>As Big As This &#187; negavite</title>
	<atom:link href="http://asbigasthis.wordpress.com/author/negavite/feed/" rel="self" type="application/rss+xml" />
	<link>http://asbigasthis.wordpress.com</link>
	<description>Alalalalala</description>
	<lastBuildDate>Thu, 25 Jun 2009 01:24:57 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='asbigasthis.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/83d5eccacbd45f05fa62474f527e150d?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>As Big As This &#187; negavite</title>
		<link>http://asbigasthis.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://asbigasthis.wordpress.com/osd.xml" title="As Big As This" />
		<item>
		<title>Sorry I haven&#8217;t been posting&#8230;.</title>
		<link>http://asbigasthis.wordpress.com/2009/06/25/sorry-i-havent-been-posting/</link>
		<comments>http://asbigasthis.wordpress.com/2009/06/25/sorry-i-havent-been-posting/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 01:24:57 +0000</pubDate>
		<dc:creator>negavite</dc:creator>
				<category><![CDATA[GTK Programming]]></category>
		<category><![CDATA[busy]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[sorry]]></category>

		<guid isPermaLink="false">http://asbigasthis.wordpress.com/2009/06/25/sorry-i-havent-been-posting/</guid>
		<description><![CDATA[Hello Everyone,
Sorry I haven&#8217;t been able to post as much as I&#8217;ve been wanting to. I&#8217;ve been studying a lot, and well, just very busy. I do have a little good news, I&#8217;m trying to make a &#8220;Pong&#8221; like game in Gtk+, and when it&#8217;s done, I&#8217;ll post the source code for everyone to see [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asbigasthis.wordpress.com&blog=2946776&post=36&subd=asbigasthis&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hello Everyone,</p>
<p>Sorry I haven&#8217;t been able to post as much as I&#8217;ve been wanting to. I&#8217;ve been studying a lot, and well, just very busy. I do have a little good news, I&#8217;m trying to make a &#8220;Pong&#8221; like game in Gtk+, and when it&#8217;s done, I&#8217;ll post the source code for everyone to see <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
Posted in GTK Programming  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asbigasthis.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asbigasthis.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asbigasthis.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asbigasthis.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asbigasthis.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asbigasthis.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asbigasthis.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asbigasthis.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asbigasthis.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asbigasthis.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asbigasthis.wordpress.com&blog=2946776&post=36&subd=asbigasthis&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asbigasthis.wordpress.com/2009/06/25/sorry-i-havent-been-posting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f57e9e62bb4e4cfed18b3ae58a60507?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Negavite</media:title>
		</media:content>
	</item>
		<item>
		<title>Why Gtk+ May be the Greatest GUI Toolkit Ever!</title>
		<link>http://asbigasthis.wordpress.com/2009/06/06/why-gtk-may-be-the-greatest-gui-toolkit-ever/</link>
		<comments>http://asbigasthis.wordpress.com/2009/06/06/why-gtk-may-be-the-greatest-gui-toolkit-ever/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 04:46:24 +0000</pubDate>
		<dc:creator>negavite</dc:creator>
				<category><![CDATA[GTK Programming]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[gtk+]]></category>

		<guid isPermaLink="false">http://asbigasthis.wordpress.com/?p=27</guid>
		<description><![CDATA[This is an article I wrote a while back, it&#8217;s been published an spread around a little.
 
When it comes to programming a lot of people look to C/C++ for answers. They’re pretty straightforward languages that are general-purpose(they aren’t really good at anything in particular, but can be used to do just about anything). The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asbigasthis.wordpress.com&blog=2946776&post=27&subd=asbigasthis&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is an article I wrote a while back, it&#8217;s been published an spread around a little.</p>
<p><span style="background:#f9f9f9;font-size:10px;"> </span></p>
<p>When it comes to programming a lot of people look to C/C++ for answers. They’re pretty straightforward languages that are general-purpose(they aren’t really good at anything in particular, but can be used to do just about anything). The only strike against these languages is that unlike Java, they don’t bring a GUI API built in. Instead, C/C++ coders must rely on other libraries and even system APIs to get the job done.</p>
<p>Introduction<br />
Nowadays almost every application has to have a GUI. Users rely on graphical interfaces, and a programmers job isn’t only to code up an app, but to also make it best for the consumer. Now this leads one to wonder, “What should I use to make the GUI part of my program?”.</p>
<p>Well, the answer isn’t always straightforward, but there is one toolkit that looks a little better than the rest. It’s Gtk+. GTK+, or The GIMP Toolkit, is a cross-platform GUI toolkit and, is one of the most popular toolkits for the X Window System, along with Qt.</p>
<p>So what makes Gtk+ so speacial? Why could it possibly deserve the title of “Greatest GUI Toolkit Ever”? That is the point of this article. Here we will discuss a little bit about it, and see why it is a very good choice for developers.</p>
<p>1. Simple Syntax<br />
One of the best features of Gtk+ is its simplicity of syntax. Almost everything is predefined, you just gotta point everything in the right direction.</p>
<p>For example, this little snippet below creates a pretty basic window (300px wide, 150px high, aligned to the center of screen, and says “A Window” in the titlebar):</p>
<p>#include</p>
<p>int main( int argc, char *argv[])<br />
{<br />
GtkWidget *window; // creates the window object</p>
<p>gtk_init(&amp;argc, &amp;argv); // this handles commandline arguments, don&#8217;t worry to much about it</p>
<p>/* Here we setup the window */<br />
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);<br />
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);<br />
gtk_window_set_default_size(GTK_WINDOW(window), 300, 150);<br />
gtk_window_set_title(GTK_WINDOW(window), &#8220;A Window&#8221;);</p>
<p>gtk_widget_show(window); // this makes it appear</p>
<p>gtk_main(); // this puts the program in a loop waiting for events</p>
<p>return 0;<br />
}</p>
<p>Amazing. That was all done in about twenty lines of code, and you could even reduce that more by getting rid of whitespace. Just for fun, I tried making something similar in Win32; my result was more than 70 lines of code, and that was just for the basics.</p>
<p>In case you’re wondering why you would choose a toolkit just because of syntax ease (or if you should even care), you must consider that the easier it is to write a program, the easier it would be to take care of it, as well as find bugs. As you will see later, Gtk+ has many features that help to make maintenance easier.</p>
<p>2. Great Structure<br />
Not does only does Gtk+ have sytax that’s easy to follow, but is also designed in a way that makes it easier to work with. For example, you define the objects and widgets (a button or window, or dialogue), you pass it parameters and set it up, and you then either pack it into the window, or a box etc. Then all that’s left is to make it show up. Of course a real application would have callbacks so that widgets would respond to events, but still that’s pretty good.</p>
<p>It’s structure like this that helps programs for becoming “code soup” and lets developers worry less about “how they’re gonna setup the application”, and more about “when they are gonna code that badboy up”.</p>
<p>3. Lightweight and Fast<br />
One of the best things about Gtk+ is its weight and execution times. This toolkit is especially good if resources are a concern to you. Applications written with Gtk+ are far less likely to crash due to not enough memory, freeze up, etc.</p>
<p>Here’s a good example: I’m working on creating a open source project right now. So far all I’ve coded is the GUI, and while I still have a long way to go before it has full functionality, the bare-bones app is only 30.4KB and executes in well under a second. Now it’s been a while since I’ve done a lot in Win32, but from what I remember even very simple applications were in the “200KB” range. That’s more than 6 times as big. In the long run, that could really add up.</p>
<p>4. Portable<br />
Last but not least is the fact that Gtk+ is portable. It’s pretty much write once, work anywhere (Of course the users have to have the right stuff to run you’re program, but this generally wouldn’t be an issue).</p>
<p>This is a great thing for programmers. A lot of programmers are turning to Java because of its “multi-platformism”; but this gives C/C++ coders a real alternative to learning a whole new language, or having to be greatly limited by another language. The portability of Gtk+ is a truly great advantage and is also a good explanation for success of toolkits like “WxWidgets” and “QT”</p>
<p>Conclusion<br />
In conclusion I hope you considered many of the things I’ve mentioned here, and are now looking into getting to know/use Gtk+. My goal here was to show you that Gtk+ is an amazing resource for C/C++ developers, and I hope I did so in as best as I could. If you find any errors, or have any suggestions, etc. please comment (I love it when people comment <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ).</p>
Posted in GTK Programming  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/asbigasthis.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/asbigasthis.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/asbigasthis.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/asbigasthis.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/asbigasthis.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/asbigasthis.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/asbigasthis.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/asbigasthis.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/asbigasthis.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/asbigasthis.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=asbigasthis.wordpress.com&blog=2946776&post=27&subd=asbigasthis&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://asbigasthis.wordpress.com/2009/06/06/why-gtk-may-be-the-greatest-gui-toolkit-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f57e9e62bb4e4cfed18b3ae58a60507?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Negavite</media:title>
		</media:content>
	</item>
	</channel>
</rss>