Sha256: dbc286813c82f35f922563828cf98e1eb8d1c2ea3868dcd2060a83cb8c42f68b

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true

Gtk.load_class :ListStore
module Gtk
  # Overrides for GtkListStore
  class ListStore
    setup_instance_method :insert_with_valuesv

    alias insert_with_values insert_with_valuesv

    setup_instance_method :set_value

    def set_value_with_value_conversion(iter, column, value)
      value = GObject::Value.for_gtype get_column_type(column) if value.nil?
      set_value_without_value_conversion iter, column, value
    end

    alias set_value_without_value_conversion set_value
    alias set_value set_value_with_value_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/list_store.rb
gir_ffi-gtk-0.12.0 lib/gir_ffi-gtk/list_store.rb