~db-keen/rush/asterales-prep

« back to all changes in this revision

Viewing changes to lib/rubyunix/ui/gtk/helpwin/gtkmozembed.rb

  • Committer: Daniel Brumbaugh Keeney
  • Date: 2008-02-29 15:45:55 UTC
  • Revision ID: devi.webmaster@gmail.com-20080229154555-vn3183wxra06z29s
switched Treetop module back to Ttop (incompatible with Treetop)
updated references to docs to reflect name change to doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/ruby
2
 
# 2008 Daniel Brumbaugh Keeney
3
 
 
 
1
#!/usr/bin/env ruby
 
2
# Author::    Daniel Brumbaugh Keeney (http://rubyforge.org/users/db-keen)
 
3
# Copyright:: 2008 Daniel Brumbaugh Keeney
 
4
# License::   GPLv3+
 
5
#
4
6
# This file is part of Rubyunix.
5
7
#
6
8
# Rubyunix is free software: you can redistribute it and/or modify
19
21
require 'gtkmozembed'
20
22
require 'gtk2'
21
23
 
22
 
module Rubyunix::UI
23
 
  module Rbgtk
24
 
 
25
 
    @helpwin = Gtk::Window.new
26
 
    @helpwin.title = "Rubyunix Help"
27
 
    @helpwin.resize(780, 570)
28
 
    @helpwin << Gtk::MozEmbed.new
29
 
    @helpwin.child.chrome_mask = Gtk::MozEmbed::ALLCHROME
30
 
    @helpwin.child.location = "file://#{Rubyunix.config['/dir']}/docs/userguide/#{Rubyunix.config['/l10n/userguide']}/index.html"
31
 
    @helpwin.show_all
32
 
    @helpwin.hide
33
 
    def Rbgtk.help
34
 
      @helpwin
35
 
    end
 
24
module Rubyunix
 
25
module UI
 
26
module Rbgtk
 
27
 
 
28
  @helpwin = Gtk::Window.new
 
29
  @helpwin.title = "Rubyunix Help"
 
30
  @helpwin.resize(780, 570)
 
31
  @helpwin << Gtk::MozEmbed.new
 
32
  @helpwin.child.chrome_mask = Gtk::MozEmbed::ALLCHROME
 
33
  @helpwin.child.location = "file://#{Rubyunix.config['/dir']}/doc/userguide/#{Rubyunix.config['/l10n/userguide']}/index.html"
 
34
  @helpwin.show_all
 
35
  @helpwin.hide
 
36
 
 
37
  def Rbgtk.help
 
38
    @helpwin
36
39
  end
 
40
 
 
41
end
 
42
end
37
43
end