GTK About Dialog Box GtkAboutDialog in Glade

Add an about dialog box to a GTK application using a GtkAboutDialog object in Glade. Example GTK application programmed in C on Linux Mint. Using a GtkAboutDialog in an application is an easy way to display information about a program like its logo, author, copyright and license. The image below shows the dialog box created … Continue reading GTK About Dialog Box GtkAboutDialog in Glade

GTK C Tic-Tac-Toe Game Tutorial

GTK C tic-tac-toe game, or noughts and crosses game, using Glade user interface designer. Build this game using GTK 3, Glade and the C programming language to learn more about GTK programming. This tutorial shows how to place an image (GtkImage) in a button (GtkButton). It also breaks a GTK C program into parts, using … Continue reading GTK C Tic-Tac-Toe Game Tutorial

GtkCheckButton Glade GTK C Tutorial

How to use a GtkCheckButton, which creates a check button or check box, in a Glade GTK C program. Read the state of a GtkCheckButton in C code in this GTK Glade tutorial. The following image shows the application built in this tutorial. It uses three GtkCheckButton widgets and prints their states to the command … Continue reading GtkCheckButton Glade GTK C Tutorial

Change Label Color in GTK Game Tutorial

How to change label color in GTK using the gtk_label_set_markup function. Demonstrates changing text color in a simple heads or tails game programmed with C, GTK and Glade. Part 14 of GTK 3 Programming with C and Glade Tutorial See the full GTK3 tutorial index About this Tutorial This tutorial improves the world’s simplest game … Continue reading Change Label Color in GTK Game Tutorial

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. Part 18 of GTK 3 Programming with C and … 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. Part 17 … Continue reading GtkComboBoxText 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

Group Radio Buttons in Glade

How to group radio buttons in Glade so that they act as a unit. Clicking one radio button selects it and clears all other radio buttons in the group. This tutorial shows how to group radio buttons in Glade user interface designer without any code to operate the buttons. This allows the window to be … Continue reading Group Radio Buttons in Glade