Sha256: dc51907a49f9bf1d2f9f2b247ed9d0de279bd2077a01dbecf159d4e959050e19

Contents?: true

Size: 595 Bytes

Versions: 2

Compression:

Stored size: 595 Bytes

Contents

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

    alias_method :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_method :set_value_without_value_conversion, :set_value
    alias_method :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.10.0 lib/gir_ffi-gtk/list_store.rb
gir_ffi-gtk-0.9.0 lib/gir_ffi-gtk/list_store.rb