Docking Widgets in GTK+

October 2, 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.

As far as I know, the Anjuta team is currently maintaining gdl. You won't likely find this library with your distributions package manager as it's still somewhat immature, however, you can build it from source by downloading it off of the Gnome FTP Server.

It has more than just a docking widget, it also has a data viewer component (similar to that found in some GUIs for debuggers), a symbol browsing component, and some other things. The down-side is that there is no documentation. You'll have to view the source code of the test programs located in the gdl/ folder of the source tarball.

Here's a screenshot of the test-dock application running on my system (gdl-0.7.7/gdl/test-dock). I'm dragging "Item #2" from the left window to dock into the right side of the window on the left.

gdl dock widget screenshot

Here's a screenshot of the test-dataview application running on my system (gdl-0.7.7/gdl/test-dataview).


gdl dataview widget screenshot
Categories: GTK+ Programming

3 Comments about "Docking Widgets in GTK+"

March 28, 2010 at 08:34 PM
Hi,

Again, thanks for the article. I am very curious about something. Does this library let us, for example, having a treeview outside of the main window like textmate? http://omploader.org/vM3licQ/Screenshot.png

Thanks.
Eduardo
October 27, 2008 at 08:42 PM
Micah Carrick, estoy haciendo una tesis en la cual me hace mucha falta usar los "Docking Widgets in GTK+" de lo cual no hay documentacion. Necesito si usted puede me mandara un ejemplo de eso en python.

Saludos.
_____________________________________________________________________________________________________

Micah Carrick, I'm doing a thesis in which makes me much needed to use the "Docking Widgets in GTK +" for which there is no documentation. What if you could send me an example of that in python.

Greetings.
Jan Niklas Hasse
November 16, 2007 at 05:46 AM
Thanks for this article, i always wondered how anjuta is doing this.

Leave a Comment about "Docking Widgets in GTK+"

Your Name:
(Required)
Website URL:
(Optional)
Comment:
(No HTML. Newlines and URLs okay.)
Enter CAPTCHA:
 
 
 
 
Share