Make a GTK Web Browser with Glade

How to make a GTK web browser application with Glade and C code. A simple web browser example project using GTK+ 3 and the WebKitWebView widget from WebKitGTK. It is very simple to make a web browser using the WebKit rendering engine. This is made possible in GTK by a full-featured port of the WebKit … Continue reading Make a GTK Web Browser with Glade

GTK Image Viewer with Glade

Make a GTK image viewer using GTK+ 3, Glade and the C programming language. GTK image viewer example project and tutorial. This is a very simple example that opens and displays an image full size. The image below shows the application built in this part of the tutorial series. Part 25 of GTK 3 Programming … Continue reading GTK Image Viewer with Glade

GTK Template Files with Widget Structure

GTK template files for GTK+ 3 projects that use Glade and the C programming language. C source code that includes a widget structure for getting pointers to widgets. I got tired of manually adding a widget pointer structure, and supporting code, to every new GTK 3 Glade project. A new set of template files in … Continue reading GTK Template Files with Widget Structure

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 Glade C Example Text Reader Program

Build a text reader application in this simple GTK Glade C example tutorial. A GTK tutorial that goes a step beyond an easy hello world example program. This tutorial shows how create a GUI windowed application using GTK, Glade and C code. The application is a simple text reader that can open a text file … Continue reading GTK Glade C Example Text Reader Program

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

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

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