Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login

gconfclock

gconfclock

gconfclock is a MVC-style clock using Ruby/GConf.

  • Model is a file($HOME/.gconf/apps/gconfclock/%gconf.xml).
  • View is the gconfclock_viewer.rb.
  • Controller is the gconfclock_controller.rb and gconfd.
  1. gconfclock_controller.rb sets the time value to the Model via gconfd.
  2. gconfd sets the value to the Model and notify it to the Views.
  3. gconfclock_viewer.rb shows the newest value as the View.

You can run plural gconfclock_viewer.rb.

Requirements

Developed environments are:

  • ruby 1.8.0 (2003-04-22) [i686-linux]
  • Ruby/GTK2, Ruby/GConf

(*)Ruby/GConf is required latest CVS version(2003-06-19 or later).

Usage

$ ruby gconfclock_controller.rb

In another terminal, execute gconfclock_viewer.rb:

$ ruby gconfclock_viewer.rb &
$ ruby gconfclock_viewer.rb &
$ ruby gconfclock_viewer.rb &
$ ruby gconfclock_viewer.rb &

License

Ruby's

Author

Masao

Changelog

2003-06-19
Initial release
Last modified:2011/06/11 10:12:33
Keyword(s):
References:[Samples]