module Alexandria::UI
Constants
- BOOKS_TARGET_TABLE
Public Class Methods
display_help(parent, section = nil)
click to toggle source
# File lib/alexandria/ui/init.rb, line 70 def self.display_help(parent, section = nil) section_index = "" section_index = "##{section}" if section exec("gnome-help ghelp:alexandria#{section_index}") if fork.nil? rescue StandardError log.error(self) { "Unable to load help browser" } ErrorDialog.new(parent, _("Unable to launch the help browser"), _("Could not display help for Alexandria. " \ "There was an error launching the system " \ "help browser.")).display end
init_icons()
click to toggle source
# File lib/alexandria/ui.rb, line 33 def self.init_icons log.info { "Initializing Icons" } Icons.init end
main()
click to toggle source
# File lib/alexandria/ui.rb, line 52 def self.main init_icons start_main_app start_gtk end
start_gtk()
click to toggle source
# File lib/alexandria/ui.rb, line 45 def self.start_gtk log.debug { "====================================" } log.info { "Starting Gtk" } log.debug { "====================================" } Gtk.main end
start_main_app()
click to toggle source
# File lib/alexandria/ui.rb, line 38 def self.start_main_app log.debug { "==========================" } log.info { "Starting MainApp" } log.debug { "==========================" } MainApp.instance end