Sha256: 34c95874fe5b2d6df812d80952553a4fdc912f0c267625bf3e356b5eab56430f

Contents?: true

Size: 458 Bytes

Versions: 9

Compression:

Stored size: 458 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

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.11.0 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.10.2 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.10.1 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.10.0 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.10.0.pre1 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.9.5 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.9.4 lib/ffi-glib/destroy_notify.rb
gir_ffi-0.9.3 lib/ffi-glib/destroy_notify.rb