<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>GTK vs. GTK2</title>
		<link>http://www.allegro.cc/forums/view/586575</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 23 Jul 2006 23:50:49 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m learning how to program GTK+. It&#39;s really nice but today I was discovered I&#39;m using version 1 instead of version 2. So I&#39;ve changed the examples I wrote to use GTK2 but I got strange errors. The simplest example I wrote (just create an empty window) runs but it shows this error</p><div class="source-code snippet"><div class="inner"><pre>X Error: BadDevice, invalid <span class="k1">or</span> uninitialized input device <span class="n">168</span>
  Major opcode:  <span class="n">145</span>
  Minor opcode:  <span class="n">3</span>
  Resource id:  <span class="n">0x0</span>
Failed to <a href="http://www.delorie.com/djgpp/doc/libc/libc_600.html" target="_blank">open</a> device
X Error: BadDevice, invalid <span class="k1">or</span> uninitialized input device <span class="n">168</span>
  Major opcode:  <span class="n">145</span>
  Minor opcode:  <span class="n">3</span>
  Resource id:  <span class="n">0x0</span>
Failed to <a href="http://www.delorie.com/djgpp/doc/libc/libc_600.html" target="_blank">open</a> device
<span class="k3">/</span>home<span class="k3">/</span>guillermo<span class="k3">/</span>.gtk_qt_engine_rc:447: error: unexpected identifier `ons<span class="s">', expected keyword - e.g. `RTL'</span>
</pre></div></div><p>

Some more complex examples (using class wrappers I wrote myself) throw an &quot;Access violation&quot; exception. I&#39;ve installed GIMP 2.2 and runs without problems...</p><p>Did I do something wrong? Didn&#39;t I installed the packages correctly (libgtk2.0-0 2.8.18-0ubuntu2 and related)?</p><p>Note: I&#39;m using latest Kubuntu with xserver-org 7.0.0 and the examples were written in Pascal (Free Pascal 2.0).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Thu, 20 Jul 2006 21:38:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
gtk_qt_engine
</p></div></div><p>
That&#39;s a buggy POS GTK engine. I&#39;d recommend switching to Qt, but in case you can&#39;t/won&#39;t, try installing QtCurve and selecting that as your GTK theme. It&#39;s fairly new so it might not be in your package manager&#39;s repository, but it works quite well for me.</p><p>Beyond that, I couldn&#39;t guess what the problem is. <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Fri, 21 Jul 2006 02:43:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I see. I&#39;ll try to update it.</p><p>But about the &quot;X error: BadDevice, invalid or uninitialized input device 168 etcetera&quot;, I find this error using synaptic. May be I should install Gnome even if I don&#39;t use it?</p><p>[edit]I&#39;ve find that Xorg adds a new input device for pens and tablets (the device 168). That&#39;s the problem with the &quot;X error: ...&quot;. <a href="http://ubuntuforums.org/showthread.php?t=212025">This thread</a> talks about it.</p><p>[edit again]</p><p><b>Need your help again.</b></p><p>Now my GTK+2 applications compile and run right... but the &#39;clicked&#39; event workes using Keyboard (cursor keys to change the focus and enter to activate them) but it doesn&#39;t work using mouse.</p><p>The &#39;enter&#39; and &#39;leave&#39; events work but &#39;pressed&#39;, &#39;released&#39; and &#39;clicked&#39; don&#39;t work. Other GTK+2 applications (as The GIMP) worked perfectly. What would be wrong? <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Sun, 23 Jul 2006 23:50:49 +0000</pubDate>
	</item>
</rss>
