Friday, February 6, 2009

Glade Interface and GTK

A word about Glade Interface Designer?
Well !! If you want to create Visual C++ like graphical application , you can use Glade. It comes as default installation with Fedora 6,7 ( i dun know abt other versions n distros). All you need to do is select and drag a couple of widgets (see previous post to know about widgets) and choose a layout. It can be used with any desktop environment in Linux, as long as the gtk+ and/or gnome libraries are installed. Glade can be downloaded from glade.gnome.org.

Other facts :

  • Glade develops the GUI and associated code
  • It creates empty callbacks and signal handlers to link the frontend GUI with the backend of the application
  • Glade doesn't develop the 'backend' of your application

Glade is not a complete IDE, in other words it does not include a compiler, editor or debugger. It is used in conjunction with these, for example with gvim as the editor, gcc as the compiler and gdb as the debugger. There are several IDEs for Linux that work with, or attempt to work with Glade. Anjuta is one.

GTK + :
After creating the interface, we need to program it for responses received from users, this part is done by GTK- GNU ToolKit. The GTK+ library is responsible for drawing the windows, dialogue boxes and buttons in the GIMP, Pidgin and hundreds of other programs.