Sha256: ebe06ffa560448a2aef8ef036ad2a771690370d367925aed6aa135c19ed10778

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

require 'glib2'
begin
  begin
    require 'cairo'
  rescue LoadError
    require 'rubygems'
    require 'cairo'
  end
rescue LoadError
end
require 'gdk_pixbuf2.so'

module Gdk
  class PixbufLoader
    def self.open(type = nil, mime_type = false)
      loader = Gdk::PixbufLoader.new(type, mime_type)
      if block_given?
        begin
          yield(loader)
        ensure
          loader.close
        end
      end
      loader
    end
  end
  class Pixbuf
    LOG_DOMAIN = "GdkPixbuf"
  end
end

GLib::Log.set_log_domain(Gdk::Pixbuf::LOG_DOMAIN)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gdkpixbuf-0.20.1 lib/gdk_pixbuf2.rb
gdkpixbuf-0.20.0 lib/gdk_pixbuf2.rb