GTK Glade Get Pointers to Widgets

How to get pointers to widgets in a GTK Glade C program without using global variables. Use a local structure to pass widget pointers to a callback function. Pass user data and widget pointers to callback. GTK Glade Pointers to Widgets Example Program and Tutorial This Glade GTK+ 3 C programming tutorial shows how to … Continue reading GTK Glade Get Pointers to Widgets

Get Widget Pointer in Callback Function GTK Glade

How to get widget pointer in callback function of Glade GTK C program. Pass a pointer to a single widget to a callback function via the gpointer user_data parameter of the callback function. How to Get Widget Pointer in Callback Function In a previous post global variables were used to get pointers to text label … Continue reading Get Widget Pointer in Callback Function GTK Glade

Compiling GLib C Programs

GLib is a utility library required by GTK+, but which can also be used independently in non-GUI applications. This article shows how to compile C programs that use GLib in Linux. It also shows how to install the correct documentation for the version of GLib installed on the system and how to find the version … Continue reading Compiling GLib C Programs

Glade Packing Tutorial

Learn how to use the Glade box container to pack widgets into a window in this Glade packing tutorial. Use widget packing instead of a fixed grid. Glade Fixed Grid Window vs. Glade Packing Window The images below show a comparison between two windows. One of the windows was created using a fixed grid, and … Continue reading Glade Packing Tutorial

GTK 3 C Code Hello World Tutorial using Glade 3

In this easy tutorial for beginners, a simple “Hello World” program is created using GTK+ 3 and programmed in the C programming language. Glade 3 is used to create the GUI window, button and text label in this GTK 3 C code hello world tutorial. The image below shows the windowed Hello World application made … Continue reading GTK 3 C Code Hello World Tutorial using Glade 3

GTK+ 3 Help Finding GTK3 Documentation

GTK3 documentation help files, known as the GTK+ 3 reference manual, can be installed on a Linux system providing a local copy of this reference. The advantage of installing the files locally on a system is that the documentation matches the version of the GTK+ 3 toolkit library that is installed on the system. Installing … Continue reading GTK+ 3 Help Finding GTK3 Documentation

Installing GTK 3 and Glade Development Tools in Linux

When developing projects using the Glade user interface designer and GTK+ 3, the Glade application and the GTK library must be installed on the development computer. This article shows how to install these components on a Debian based Linux distribution such as Linux Mint or Ubuntu. Installing GTK 3 and Glade development tools in Linux … Continue reading Installing GTK 3 and Glade Development Tools in Linux

Compile C Programs for Windows and Linux

In order to compile a C program on a Linux machine that will run on Windows, cross-compiler software tools need to be installed on the Linux machine. The same C source code can be compiled to run on a Linux machine by using the GCC compiler. Here we look at how to compile a simple … Continue reading Compile C Programs for Windows and Linux