Sha256: 0384cd82a14dad02b3c2a60d7f466607aa7b1cdcd9bad3e169779a53a3b2aa9d
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
# frozen_string_literal: true require 'gtk3' require 'gtksourceview4' # Main module module Pickaxe # Pickaxe::ApplicationWindow < Gtk::ApplicationWindow class ApplicationWindow < Gtk::ApplicationWindow type_register class << self def init GtkSource::View.init # Set template from a Glade UI file ui_file_path = File.expand_path('ui/application_window.ui', __dir__) ui_data = File.read ui_file_path set_template data: ui_data end end def initialize(application) super application: application end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pickaxegem-0.1.1 | lib/pickaxe/application_window.rb |
pickaxegem-0.1.0 | lib/pickaxe/application_window.rb |