Sha256: 3cc6eed4cc6e36423e9534bac6d7dd0f1f4ddc5eb53f16978179bebb82f234e7

Contents?: true

Size: 459 Bytes

Versions: 13

Compression:

Stored size: 459 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_key = GirFFI::ArgHelper::OBJECT_STORE.fetch(user_data)
        drop_callback callback_key
      }
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.15.3 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.15.2 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.15.1 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.15.0 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.14.1 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.14.0 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.13.1 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.13.0 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.12.1 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.12.0 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.11.4 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.11.3 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.11.2 lib/ffi-glib/destroy_notify.rb