Sha256: 910179fb795f2447b226ba4ee441e310de9f3fb22a326e5974b61051ab83d28c

Contents?: true

Size: 449 Bytes

Versions: 2

Compression:

Stored size: 449 Bytes

Contents

Gtk.load_class :TreeStore
module Gtk
  # Overrides for GtkTreeStore
  class TreeStore
    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/tree_store.rb
gir_ffi-gtk-0.9.0 lib/gir_ffi-gtk/tree_store.rb