Part 2a

Gtk Dialog Box

Dialog Box

  1. Continuing on from the first tutorial open up glade1.glade and save as glade2.glade.

    Your project should look like this now.

    images/glade-02-01.png
  2. Now click on Toplevels > About Dialog to create an About Dialog

    Your project should look like this now.

    images/glade-02-02.png
  3. In the General tab add some text to the the following items:

    • Program name: - Gnipsel

    • Program version: - 0.1

    • Copyright string: - Copyright © Your Name

    • Website URL: - www.gnipsel.com

    • License: - GNU

    • Authors: - Your name

  4. Notice how the about box changes as you add some text to each item and how some make buttons appear.

    Your project should look like this now.

    images/glade-02-03.png
  5. Next navigate to imagemenuitem10 which is the Help > About menu item and change the Name: to gtk_about.

    Your project should look like this now.

    images/glade-02-04.png
  6. Next add the on_gtk_about_activate Handler to the GtkMenuItem activate signal and don’t forget to press the Enter key.

    Your project should look like this now.

    images/glade-02-05.png

Ok save the file as tutorial-2.glade and we are done.