Sha256: 838a4c8eb5143392e51cad2b7e1409bef72e9d16fcc860e5b59ec8b0b0270f30

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

Gtk.load_class :TargetEntry
module Gtk
  # Overrides for GtkTargetEntry
  class TargetEntry
    setup_method :new

    def initialize_with_flags_conversion(target, flags, info)
      native_flags = Gtk::TargetFlags.to_native flags, nil
      initialize_without_flags_conversion target, native_flags, info
    end

    alias initialize_without_flags_conversion initialize
    alias initialize initialize_with_flags_conversion
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.12.1 lib/gir_ffi-gtk/gtk3/target_entry.rb
gir_ffi-gtk-0.12.0 lib/gir_ffi-gtk/gtk3/target_entry.rb