Archive for the 'C Programming' Category

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 »

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 »

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 »

Simple Dialog Boxes with C/GTK+ and libglade

Thursday, March 9th, 2006

This is a simple Linux application using GTK+ and libglade to demonstrate some very simple dialog boxes. The application's interface is created in Glade and accessed using libglade, however, the dialog boxes are implemented entirely in GTK+ code since they're so easy to implement that way. These dialog boxes are from the GtkMessageDialog widget, which is a derivative of the GtkDialog widget.

Read the rest of this entry »

Tutorial: Simple Gnome Application Using libglade and C/GTK+

Thursday, March 2nd, 2006

Gnome Application 3

This tutorial is intended for those people interested in getting started developing Gnome applications using GTK+. Specifically, it uses the Glade Interface Designer to build a the user interface and C/GTK+ to write the code for a Gnome application. The application will simply be a window with a typical toolbar and status bar. This application will be used in later tutorials to demonstrate various other aspects of Gnome programming. The complete project can be downloaded here: gnome3-0.1.tar.gz

Read the rest of this entry »

Gnome Programming: Using LibGlade with Anjuta/Glade

Friday, April 22nd, 2005

Note: This tutorial is no longer current. A new, more up-to-date and in-depth tutorial has been written: Tutorial: Simple Gnome Application Using libglade and C/GTK+

Read the rest of this entry »

Gnome Programming: Getting Started with Anjuta/Glade

Wednesday, April 20th, 2005

Note: This tutorial is no longer current. A new, more up-to-date and in-depth tutorial has been written: Tutorial: Simple Gnome Application Using libglade and C/GTK+


Read the rest of this entry »