Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Back  Login

tut-gtk2-agtkw Diff - Ruby-GNOME2 Project Website

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

= (11) Additional GTK+ Widgets
{{link "tut-gtk2-dnd-onto-drawables", "tut-gtk2-agtkw", "tut-gtk", "tut-gtk2-agtkw-draww"}}

###
### old: {{link "tut-gtk2-ccw", "tut-gtk2-agtkw", "tut-gtk", "tut-gtk2-agtkw-draww"}}
### new: {{link "tut-gtk2-dnd-onto-drawables", "tut-gtk2-agtkw", "tut-gtk", "tut-gtk2-dancr"}}

= #= Sorry this chapter is still under construction

### (11) Additional GTK+ Widgets
###
###     11.1 Drawing Widgets (!)
###     11.2.1 Calendars
###     11.2.2 Status Icons
###
### *new* (12) Drawing Area and Cairo
###
###     12.1 Intro
### ------------------------------------------
### * (12) ((<Drawing Area and Cairo|tut-gtk2-dancr>))
###     * ((<Intro|tut-gtk2-dancr-intro>))
### ------------------------------------------


:Contents of this chapter:

  * 11 ((<Additional GTK+ Widgets|tut-gtk2-agtkw>)) (this page)
    * 11.1 ((<Drawing Widgets|tut-gtk2-agtkw-draww>))
    * 11.2.1 ((<Calendars|tut-gtk2-agtkw-cal>))
    * 11.2.2 ((<Status Icons|tut-gtk2-agtkw-cal#Status Icons>))

By now, you have learnt Ruby equivalent of almost everything Andrew Klause's book has to teach you. However, there are a number of widgets that did not quite fit into previous chapters and sessions. We will deal with those here.

The first two widgets are used for drawing and are named Gtk::DrawingArea and Gtk::Layout. These two widgets are very similar except the Gtk::Layout widget allows you to embed arbitrary widgets into it in addition to using functions for drawing. In addition, you will learn about Gtk::Entry widgets that support automatic completion and calendars. Lastly, you will be introduced to widgets that were added in GTK+ 2.10 including status icons, printing support, and recent file managers.

:In this chapter you will learn the following:

    * How to use the drawing widgets Gtk::DrawingArea and Gtk::Layout
    * How to use the Gtk::Calendar widget to track information about months and the year
    * How to use widgets introduced in GTK+ 2.10 that provide recent file tracking, printing support, and status icons
    * How to implement automatic completion in Gtk::Entry widget by applying a Gtk::EntryCompletion object