class GdkX11::Loader

Public Instance Methods

load() click to toggle source
Calls superclass method
# File lib/gdk4/x11-loader.rb, line 19
def load
  self.version = "4.0"
  begin
    super("GdkX11")
  rescue GObjectIntrospection::RepositoryError::TypelibNotFound
    # Ignore. Some environments such as Windows don't have it.
  end
end

Private Instance Methods

post_load(repository, namespace) click to toggle source
# File lib/gdk4/x11-loader.rb, line 29
def post_load(repository, namespace)
  @base_module.constants.each do |constant|
    case constant
    when :INVOKERS,
         :Loader
      next
    else
      value = @base_module.const_get(constant)
      Gdk.const_set(constant, value)
    end
  end
end