GTK Programming Introduction

A brief overview of GTK in preparation for learning GTK programming. Learn to write GUI applications for Linux using GTK 3 with Glade user interface designer and the C programming language. Part 1 of GTK 3 Programming with C and Glade TutorialSee the full GTK3 tutorial index What is GTK? GTK stands for GIMP Toolkit, … Continue reading GTK Programming Introduction

GtkToggleButton Glade GTK C Program Tutorial

This GtkToggleButton Glade GTK C program tutorial shows how to use a toggle button and read its state using C code. The user interface is laid out using the Glade user interface designer. GTK+ 3 and the C programming language is used in the project example. A toggle button differs from a plain button in … Continue reading GtkToggleButton Glade GTK C Program Tutorial

GtkComboBoxText Glade GTK C Program

GtkComboBoxText Glade GTK C program shows how to use a GtkComboBoxText widget as a drop-down text selection box. Get the selected text and selected item number from a user in this GTK+  3 text combo box tutorial. The GtkComboBoxText widget contains a list of text items that are selectable as a drop-down list. The image … Continue reading GtkComboBoxText Glade GTK C Program

GtkSpinButton Glade GTK C Program

How to use a GtkSpinButton in a GTK+ 3 application written in C using Glade user interface designer. This tutorial shows how to build a GTK+3 application that allows a user to enter a number in a GtkSpinButton widget. Clicking a button in the application reads the value from the spin button widget and writes … Continue reading GtkSpinButton Glade GTK C Program

GTK Display Time in Glade Application

GTK display time in window using GTK+3, Glade and GLib functions. This tutorial shows how to write a GTK+ 3 application that displays the current time in a window. The application code is written in the C programming language. Glade is used to lay out the window and widgets. Below is an image that shows … Continue reading GTK Display Time in Glade Application

GTK+ Find Selected Radio Button

Find selected radio button in a group of GTK+ 3 Glade radio buttons using the C programming language. The previous two blog posts showed how to group radio buttons in Glade and how to program radio buttons in C code. This article follows on showing how to read the states of the radio buttons and … Continue reading GTK+ Find Selected Radio Button

GTK+ 3 Glade Radio Buttons C Code

GTK+ 3 Glade radio buttons C code that demonstrates how to use radio buttons in a Glade GTK project. The tutorial in the previous blog post showed how to group radio buttons in Glade, but did not show how to use the radio buttons in a program. This tutorial shows how to use the radio … Continue reading GTK+ 3 Glade Radio Buttons C Code

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. Part 10 of GTK 3 Programming with C and Glade TutorialSee the full GTK3 tutorial index GTK Glade Pointers … 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. Part 9 of GTK 3 Programming with C and Glade TutorialSee the full GTK3 tutorial index How to Get Widget Pointer in … 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