Sha256: 65f21c9b2530b0faad2072e1b0b6eace41b348063a8d42955b2ad8c58a6251ee

Contents?: true

Size: 451 Bytes

Versions: 9

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

GLib.load_class :DestroyNotify

module GLib
  # Overrides for DestroyNotify, the callback type for destroy notifications.
  # It should not be necessary to create objects of this class from Ruby
  # directly.
  class DestroyNotify
    def self.default
      @default ||= from proc { |user_data|
        callback = GirFFI::ArgHelper::OBJECT_STORE.fetch(user_data)
        drop_callback callback
      }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.16.1 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.16.0 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.15.9 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.15.8 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.15.7 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.15.6 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.15.5 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.15.4 lib/ffi-glib/destroy_notify.rb