Portions of the glib 2.x libraries which provide a low-level non-GUI core library for gtk+. Gtk# is composed of three modules: gtk-sharp, gnome-sharp, and gnome-desktop-sharp. You might also like to grab a copy of the Gtk# integration package for Visual Studio which will allow you to use GTK# with Microsoft’s Visual Studio without installing the rest of Mono. Windows: If you are using Windows, pick yourself up a copy of the integrated installer from that Downloads page. In the worst case, you may be forced to build yourself from source.
If not, check out Downloads to find a package that works for you. Linux, macOS, FreeBSD, and others: See if your distribution has GTK# development packages as well as any Mono packages first.
Getting Set Up Download/Install GTK#įirst thing you will want to do is get your GTK# install up and running.
This means if you write your applications in GTK# and wished to run on Windows as well, you can choose to deploy with just GTK# and use Microsoft’s runtime, or alternately deploy with Mono’s runtime for Windows. GTK# is regularly tested on MS.NET and Mono but should run on any fully compliant runtime. One common misconception is that GTK# requires Mono to work. gtk+ is routinely included in most Linux distributions, and has been stable on Windows NT derivitives for quite a while now (probably roughly around 2000, if my memory serves me correctly).Ī native port to macOS is planned but needs warm bodies. The library originates from Linux where it provides a basis for the popular GNOME desktop environment. Offering a complete set of widgets, gtk+ is suitable for projects ranging from small one-off toys to Enterprise application suites.Ĭurrently gtk+ works natively on any X server, Direct Framebuffer system and Microsoft Windows NT derivitives. Gtk# put simply is a wrapper on gtk+, a cross platform GUI framework.Īdapted from the gtk+ website: gtk+ is a multi-platform toolkit for creating graphical user interfaces.
The article also introduces the use of Glade and libglade as a process for rapidly implementing graphic user interfaces. C, C++, perl, python) will also find it useful as it explains the basic process under Mono/C#. Programmers familiar with the Gtk+ API from other languages (e.g. It will help those who have never programmed a Gtk+ GUI before to get started. This article is a beginners guide to Gtk# programming.