glib and Xlib
Hello; What is *glib *adding that the GTK + compared to *Xlib *? All what is possible with glib with Xlib is feasible, then why create a new library. Best regards. -- EL Gonnouni Jaâfar. GSM : +21266682150. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: glib and Xlib
Hi, I don't entirely understand your question. GLib and Xlib aren't really comparable. GLib is a utility library that adds hash tables, lists, IO abstraction, platform abstraction and also an object system used by GTK +. If I misunderstood, could you please elaborate a bit on what you meant? Cheers, Mikael Hallendal 6 jun 2008 kl. 00.38 skrev jaafar EL GONNOUNI: > Hello; > > What is glib adding that the GTK + compared to Xlib ? > > All what is possible with glib with Xlib is feasible, then why > create a new library. > > Best regards. > > -- > EL Gonnouni Jaâfar. > GSM : +21266682150. ___ > gtk-devel-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-devel-list -- Mikael Hallendal Imendio AB - Expert solutions in GTK+ http://www.imendio.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: glib and Xlib
jaafar EL GONNOUNI escreveu: > Hello; > > What is *glib *adding that the GTK + compared to *Xlib *? > > All what is possible with glib with Xlib is feasible, then why create a new > library. > glib is a library to easy programming with the C language. It contains data structures, utility functions, and features such as a simple lexical scanner, key-value file reading, and more. Gtk+ uses it, and both are developed by the same group, but otherwise they aren't related. It bears no relation to Xlib in any aspect. Gtk+ is a windowing toolkit. If we disregard the fact that it is cross-platform (and thus can be used in Windows where there is no Xlib, for example), it allows one to easily create widgets that have the same look-and-feel in all applications using Gtk+, in a much simpler way than with Xlib directly. Or even with Xaw. But you're free to design your own widgets directly in Xlib and ignore Gtk+ completely, if you fell inclined to do that. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: glib and Xlib
jaafar EL GONNOUNI wrote: > Hello; > > What is *glib *adding that the GTK + compared to *Xlib *? > > All what is possible with glib with Xlib is feasible, then why create a new > library. From http://library.gnome.org/devel/glib/stable/glib.html : GLib is a general-purpose utility library, which provides many useful data types, macros, type conversions, string utilities, file utilities, a main loop abstraction, and so on. It works on many UNIX-like platforms, Windows, OS/2 and BeOS. GLib is released under the GNU Library General Public License (GNU LGPL). From http://tronche.com/gui/x/xlib/introduction/ : The X Window System is a network-transparent window system that was designed at MIT. X display servers run on computers with either monochrome or color bitmap display hardware. The server distributes user input to and accepts output requests from various client programs located either on the same machine or elsewhere in the network. Xlib is a C subroutine library that application programs (clients) use to interface with the window system by means of a stream connection. Although a client usually runs on the same machine as the X server it is talking to, this need not be the case. I hope you can see the difference. tom ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: glib and Xlib
I think he means 'If All can be made possible via glib with Xlib, then why create a new library GTK+'? do duplicate the work?' 2008/6/6 jaafar EL GONNOUNI <[EMAIL PROTECTED]>: > Hello; > > What is glib adding that the GTK + compared to Xlib ? > > All what is possible with glib with Xlib is feasible, then why create a new > library. > > Best regards. > > -- > EL Gonnouni Jaâfar. > GSM : +21266682150. > ___ > gtk-devel-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-devel-list > > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: glib and Xlib
2008/6/6 jaafar EL GONNOUNI <[EMAIL PROTECTED]>: > Hello; > > What is glib adding that the GTK + compared to Xlib ? > > All what is possible with glib with Xlib is feasible, then why create a new > library. GObject for example. -- Felipe Contreras ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: glib and Xlib
jaafar EL GONNOUNI wrote: Hello; What is *glib *adding that the GTK + compared to *Xlib *? All what is possible with glib with Xlib is feasible, then why create a new library. GLib in only on letter off from Xlib but the similarities end there. The C standards and POSIX do not specify data structures, and just a handful of algorithms. In order to write software that is more than simple linear logic one needs to employ fairly common data structures and algorithms. GLib provides those structures as well as abstractions other functionality which is only defacto standards in some systems but not others. GObject, which is bundled with and depends on GLib, provides a very complete explicit object orientation and signaling library. XLib is pretty cool too. XLib is actually the client side of a rather well thought out graphics system. Almost all modern low-level graphics APIs have a server-client design even if they are running with shared memory. This maps well to semi-persistent graphics primitives and asynchronous control and rendering. Gdk (bundled with Gtk+) abstracts XLib and Xt (X intrinsics) on systems where that is the primary graphics environment. Best regards. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list -- ssh [EMAIL PROTECTED] cat /dev/brain | grep ^work: Aron Rubin Senior Member, Engineering Staff Lockheed Martin E-Mail: [EMAIL PROTECTED] Advanced Technology Laboratories Phone: 856.792.9865 3 Executive Campus Fax:856.792.9930 Cherry Hill, NJ USA 08002Web:http://www.atl.lmco.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list