Sha256: 0a990d4903c6bc062d4aa78579339da3a28df9f37b2c16e57ae5f8da2eadfd45

Contents?: true

Size: 1.65 KB

Versions: 5

Compression:

Stored size: 1.65 KB

Contents

# frozen_string_literal: true

# 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 "gtk3"

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
      log.debug { "==========================" }
      log.info { "Starting MainApp" }
      log.debug { "==========================" }
      MainApp.instance
    end

    def self.start_gtk
      log.debug { "====================================" }
      log.info { "Starting Gtk" }
      log.debug { "====================================" }
      Gtk.main
    end

    def self.main
      init_icons
      start_main_app
      start_gtk
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alexandria-book-collection-manager-0.7.10 lib/alexandria/ui.rb
alexandria-book-collection-manager-0.7.9 lib/alexandria/ui.rb
alexandria-book-collection-manager-0.7.8 lib/alexandria/ui.rb
alexandria-book-collection-manager-0.7.7 lib/alexandria/ui.rb
alexandria-book-collection-manager-0.7.6 lib/alexandria/ui.rb