Class: Phew::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/phew/application.rb

Overview

Main Phew application.

Instance Method Summary collapse

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

#presentObject



19
20
21
22
23
# File 'lib/phew/application.rb', line 19

def present
  win.show_all
  win.children.first.visible = false if win.show_menubar
  win.present
end