Chabot College Fall 2002

Removed Fall 2006

Course Outline for Computer Science 18G

Linux Gnome and GTK+ Programming II

Catalog Description:

Computer Science 18G - Linux Gnome and GTK+ Programming II2 units

Advanced topics in Linux GUI programming using Gnome and GTK+. Advanced widgets, toolbars, numeric widgets, fonts, graphics, introduction to GNOME. Prerequisite: Computer Science 18F (completed with a grade of C or higher). 1.5 hours lecture, 1.5 hours laboratory.

Prerequisite Skills:

Before entering the course the student should be able to:

  1. identify the major components, data types, and data structures provided by the GTK+/Gnome libraries, GLib, GDK, GTK+, ImLib, etc;
  2. develop an application in C using the GTK+/gnome libraries;
  3. use Gnome widgets in a C-language application under Linux;
  4. use the basic window tools provided in the GTK+: windows, combo boxes, etc.;
  5. handle the most common events in a GUI environment from within a C program: mouse actions, signals, keystrokes, etc.;
  6. set the size, position, layout, and captions on windows;
  7. add controls such as buttons to a window;
  8. use a packing box to organize controls;
  9. add widgets to a window;
  10. use widgets to add labels, input text boxes, toggle buttons, check buttons, radio buttons and frames to a window;
  11. use list and bulk data widgets in a windowing application;
  12. use dialog boxes in a window;
  13. use a menu in a window.

Expected Outcomes for Students:

Upon completion of the course the student should be able to:

  1. use spin buttons, progress bars, range widgets, toolbars, tool tips and status bars in a windowing application;
  2. respond to an adjustment event in a scroll bar;
  3. create a scrolling container to add scrolling to lists or other widgets;
  4. use the basic image handling tools in a window: graphics, colors and fonts;
  5. describe the GNOME extensions for GTK+;
  6. use config files and command-line parameters inside windowing programs in C;
  7. use GNOME dialogs (about boxes, message boxes and property boxes) in a program;
  8. use GNOME widgets (calculator, color/font dialogs, extended entry, Druids) in a program;
  9. access sound devices from within a program;
  10. add online help to an application;
  11. access Internet functions from within a GNOME application;
  12. use the GNOME canvas to handle drawing shapes and manage colors in a program;
  13. use the GNOME Integrated Development Environment to manage multi-file projects;

Course Content:

  1. Advanced Widgets and event handling
  1. Spin buttons, progress bars, range widgets
  2. Toolbars, tool tips, status bars
  3. Scrolling containers
  4. Calendars

Chabot CollegePage 2

Course Outline for Computer Science18G

Fall 2002

2.Graphics, colors and fonts

a.Styles and how they affect widgets

b.Using fonts, the font dialog

  1. Handling images
  2. GDK drawing routines
  1. GNOME
  1. GNOME development environment and its directory tree
  2. Allowing for foreign language translation in an application
  3. Storing and retrieving application configuration information
  4. Interacting with the X-windows session manager

4.GNOME Dialogs

  1. GnomeDialog object (as an extensible dialog template)
  2. GnomeMessagebox
  3. Adding an About box to your application
  4. Building a property dialog

5.GNOME Widgets

  1. GNOME Calculator widget
  2. Using a button to invoke color and font dialogs
  3. Specialized data entry with GnomeEntry
  4. Druids (roughly like Microsoft Wizards)
  1. More GNOME
  1. Saving and loading configuration with config files
  2. Accessing sound services
  3. Adding online help
  4. Accessing the Internet from within a program

Methods of Presentation:

1.Lecture

  1. In-class example programs with explanations and demonstrations

Assignments and Methods of Evaluating Student Progress:

  1. Typical Assignments
  2. Small programming assignments illustrating main points from lecture

1)Create programs that draw windows with various tools

2)Create a program that opens and closes several windows

2.Methods of Evaluating Student Progress

a.Midterm exam(s)

b.Optional short quizzes

c.Final Exam

Textbook(s) (Typical):

Beginning GTK+/GNOME Programming, Peter Wright, Wrox Press, 2000

Special Student Materials:

Computer lab fee

Diskettes

Optional zip disk

Revised: July 2001

Keith Mehl

CS 18G Outline Fall 2002

hps