<br><br><div class="gmail_quote">On Mon, Jan 3, 2011 at 12:28 PM, Piotr Gluszenia Slawinski <span dir="ltr"><<a href="mailto:curious@bwv190.internetdsl.tpnet.pl">curious@bwv190.internetdsl.tpnet.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Nima Sahraneshin <<a href="mailto:unix.nima@gmail.com" target="_blank">unix.nima@gmail.com</a>> writes:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I want to write a program based on X .I need some documentation about<br>
X (using X) .<br>
</blockquote>
<br>
Assuming that you want to make an "ordinary" application that is going<br>
to run under X, you really want to use a toolkit. These days, Qt<br>
(<a href="http://qt.nokia.com/" target="_blank">http://qt.nokia.com/</a>) and Gtk (<a href="http://www.gtk.org/" target="_blank">http://www.gtk.org/</a>) are probably the<br>
best alternatives.<br>
<br>
They are much easier to work with than coding directly for X, and they<br>
do a lot of things for you that is otherwise a royal pain to get right.<br>
</blockquote>
<br></div>
they both have serious shortcomings, and bugs, which make<br>
target application either non-functional after routine API changes (nokia) or bloated, buggy and slow (gtk).<br></blockquote><div><br></div><div>It's not that bad. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
coding either directly for X or using lighter toolkits (i.e. fltk)<br>
has some point, and saves royal withdrawal after royal painkillers.<br></blockquote><div><br></div><div>It may save you from API changes from time to time, but you get no interoperability with other apps or DEs, no portability to other OSes; your app looks terrible and nobody is going to want to maintain some Xlib code when Qt/GTK is much better documented, well-supported and considerably more functional. I honestly can't see any benefit to using Xlib directly in this day and age. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888">
<br>
-- <br></font><div><div></div><div class="h5">
_______________________________________________<br>
<a href="mailto:xorg@lists.freedesktop.org" target="_blank">xorg@lists.freedesktop.org</a>: X.Org support<br>
Archives: <a href="http://lists.freedesktop.org/archives/xorg" target="_blank">http://lists.freedesktop.org/archives/xorg</a><br>
Info: <a href="http://lists.freedesktop.org/mailman/listinfo/xorg" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xorg</a><br>
Your subscription address: <a href="mailto:jafeiner@gmail.com" target="_blank">jafeiner@gmail.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>- Joel<br>