Sha256: 7697b6c112d76a63740920f10c07c5ca32465d12daed7cf74ffc27ed2debe00c

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

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)
      if value.nil?
        value = GObject::Value.for_gtype get_column_type(column)
      end
      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

1 entries across 1 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.11.0 lib/gir_ffi-gtk/list_store.rb