Archive for the 'GTK+' Category

Libglade to GtkBuilder F.A.Q.

Friday, May 30th, 2008

I try to help new users with GTK+ programming and Glade as often as I have time in the mailing lists, forums, and emails in response from my tutorials. I posted this to answer some of the more frequent questions I get about GtkBuilder and Libglade.

Libglade and GtkBuilder are libraries which are used by programmers to dynamically parse an XML file describing a GUI (usually created with Glade Interface Designer) and build the GUI. Using Glade with Libglade or GtkBuilder allows for RAD (Rapid Application Development) of GTK+ applications in a multitude if programming languages such as C, C++, PHP, Python, etc. If you don't know this already, this FAQ probably will not be very relevant to you and you should instead start with: GTK+ and Glade3 GUI Programming Tutorial - Part 1

Read the rest of this entry »

GTK+ and Glade3 GUI Programming Tutorial - Part 3

Tuesday, January 1st, 2008

Writing a Basic Program to Implement the Glade File

In this part of the GTK+ and Glade3 GUI Programming Tutorial series, I will show you a very basic program that will parse the Glade file we created in Part 1 and display the main window for our GTK+ text editor. In this part of the tutorial, I will be discussing the GTK+ concepts first and then show the code in both Python and C (in different colors). If you have chosen to work in one language or the other, you can opt to skip over the code explanation for the language you are not going to use.

Read the rest of this entry »

GTK+ and Glade3 GUI Programming Tutorial - Part 2

Thursday, December 27th, 2007

Choosing a Programming Language for GTK+ Development

In part 1 of the GTK+ and Glade3 GUI Programming Tutorial series, we designed a graphical user interface (GUI) for a GTK+ text editor application. After doing so, we were left with an XML file (tutorial.glade) which described our application's user interface.

In this part of the GTK+ and Glade3 GUI Programming Tutorial series I will be discussing the various programming languages available for GTK+ development. Subsequent parts of this tutorial will cover both C programming and Python programming. With my help, you will have to make the decision of which one you want to learn how to use (or both!).

Read the rest of this entry »

GTK+ and Glade3 GUI Programming Tutorial - Part 1

Monday, December 24th, 2007

Designing a User Interface using Glade3

In part 1 of the GTK+ and Glade3 GUI Programming Tutorial series, we will be designing the graphical user interface (GUI) for a GTK+ text editor application (shown below) which will be used throughout these tutorials. This GUI design will be created using the Glade Interface Designer and is completely independent of the programming language used to implement the design, which will come in subsequent tutorials.

GTK+ Text Editor using Glade3

Read the rest of this entry »

Gedit Symbol Browser Plugin

Wednesday, November 14th, 2007

I have written a symbol browsing (function browser, class browser, etc.) plugin for Gedit, the default GNOME text editor. The plugin is based on Exuberant Ctags (ctags.sourceforge.net) which must be installed to use the plugin.

Read the rest of this entry »

Docking Widgets in GTK+

Tuesday, October 2nd, 2007

If you've ever used Anjuta or MonoDevelop, you may have noticed the nice docking widgets they use. This is very common and useful for IDEs (Integrated Development Environments). Many people ask how they can get dockable windows in their own GTK+ applications. Well, since there is no built-in widget for this in GTK+, you can use the same libraries that Anjuta and MonoDevelop are using: gdl.
Read the rest of this entry »

Install Notes: Anjuta 2.2.1 on Ubuntu AMD64

Thursday, September 27th, 2007

Anjuta is a nice programming IDE (Integrated Development Environment) for Gnome. I use it for C and GTK+ programming. Today I installed version 2.2.1 on my Ubuntu Feisty Fawn distro running AMD64. This isn't an extensive installation guide, but instead just a couple of notes on possible hang ups.
Read the rest of this entry »

Foundations of GTK+ Development

Friday, April 20th, 2007

Andrew Krause's book, Foundations of GTK+ Development has been released. I did some of the technical review work on this book and can say that Andrew has done a fine job. As far as I am aware, it is the only GTK+ book currently available for GTK+ 2.x. It covers the new widgets like notification icon, print dialog, recent files, etc.
Read the rest of this entry »

VB Programmer’s Intro to Linux Programming with GTK+

Saturday, August 19th, 2006
Hello Application in Visual Basic 6
From Visual Basic...
Hello Application in GTK+
... to C/GTK+

Read the rest of this entry »

Color and Font Selection Dialogs in C/GTK+ with libglade

Friday, March 10th, 2006

In this example code, I show how to use the GtkFontSelectionDialog and the GtkColorSelectionDialog using C/GTK+ and libglade. Both dialogs as well as the main window are in the gui.glade file created by Glade.

Read the rest of this entry »