Sha256: 1a3d18d74980733efb92fd41bbff891fa3cf34416ffa4f89a785c4848640b4cb

Contents?: true

Size: 1.67 KB

Versions: 2

Compression:

Stored size: 1.67 KB

Contents

# Copyright (C) 2004-2006 Laurent Sansonetti
#
# Alexandria is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Alexandria is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with Alexandria; see the file COPYING.  If not,
# write to the Free Software Foundation, Inc., 51 Franklin Street,
# Fifth Floor, Boston, MA 02110-1301 USA.

require 'gdk_pixbuf2'

require 'alexandria/ui/gtk_thread_help'
require 'alexandria/ui/icons'
require 'alexandria/ui/builder_base'
require 'alexandria/ui/completion_models'
require 'alexandria/ui/libraries_combo'
require 'alexandria/ui/multi_drag_treeview'
require 'alexandria/ui/main_app'

module Alexandria
  module UI
    include Logging
    def self.init_icons
      log.info { 'Initializing Icons...' }
      Icons.init
    end
    def self.start_main_app
      puts '==========================' if $DEBUG
      log.info { 'Starting MainApp...' }
      puts '==========================' if $DEBUG
      MainApp.instance
    end
    def self.start_gtk
      puts '====================================' if $DEBUG
      log.info { 'Starting Gtk...' }
      puts '====================================' if $DEBUG
      Gtk.main_with_queue
    end
    def self.main
      init_icons
      start_main_app
      start_gtk
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.6.9 lib/alexandria/ui.rb
alexandria-book-collection-manager-0.6.9.pre1 lib/alexandria/ui.rb