Class: Phew::Application
- Inherits:
-
Object
- Object
- Phew::Application
- Defined in:
- lib/phew/application.rb
Overview
Main Phew application.
Instance Method Summary collapse
-
#initialize(gtk_application) ⇒ Application
constructor
A new instance of Application.
- #present ⇒ Object
Constructor Details
#initialize(gtk_application) ⇒ Application
Returns a new instance of Application.
12 13 14 15 16 17 |
# File 'lib/phew/application.rb', line 12 def initialize(gtk_application) @gtk_application = gtk_application @context = Gdk.pango_context_get @font_repository = FontRepository.new @context connect_signals end |
Instance Method Details
#present ⇒ Object
19 20 21 22 23 |
# File 'lib/phew/application.rb', line 19 def present win.show_all win.children.first.visible = false if win. win.present end |