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. 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

GTK+ 3 Reference Manual in Devhelp Viewer

The GTK+ 3 Reference Manual can be viewed locally on a Linux computer in a program called Devhelp. When developing GTK+ 3 applications a local copy of the documentation can be very helpful. A previous article explained how to get on-line and off-line help for GTK+ using a web browser. Devhelp is an alternative application … Continue reading GTK+ 3 Reference Manual in Devhelp Viewer

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