-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvr
More file actions
executable file
·63 lines (52 loc) · 1.25 KB
/
vr
File metadata and controls
executable file
·63 lines (52 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/ruby
require_relative "src/version"
require GTK_VERSION
require GTK_SOURCEVIEW_VERSION
$root = File.dirname(__FILE__)
require_relative "all_requires"
VR_Main.new(ARGV).show_glade()
# Gtk.main_quit
#
# main = Gtk::Application.new("visualruby.org.main", [:non_unique] )
#
# main.signal_connect "activate" do |app|
# # @splash = nil
# # @t = Thread.new do
# # @splash = Gtk::Window.new()
# # img = Gtk::Image.new(file: File.join($root, "img", "splash.png"))
# # img.visible = true
# # @splash.add(img)
# # @splash.position = :center_always
# # @splash.modal = true
# # @splash.show_all
# # @splash.set_keep_above(true)
# # while (Gtk.events_pending?)
# # Gtk.main_iteration
# # end
# # sleep 4
# # @splash.destroy
# # end
# fake_parent = FakeParent.new()
# # win = Gtk::Window.new()
# app.add_window(fake_parent.win)
# VR_Main.new(ARGV).show_glade(fake_parent)
# # fake_parent.win.destroy
# # @splash.show_all
# # @splash.set_keep_above(true)
# end
# class FakeParent
#
# attr_accessor :builder, :win
#
# def initialize()
# @win = Gtk::Window.new()
# @win.show_all
# @builder = {window1: win}
# end
#
# end
#
#
#
#
# main.run