Sha256: 192721a461f5c0a750185418e629dce17e3998aa6443891fe61b6a4a13ba8127

Contents?: true

Size: 613 Bytes

Versions: 3

Compression:

Stored size: 613 Bytes

Contents

Gtk.load_class :TreeViewColumn
module Gtk
  # Overrides for Gtk::TreeViewColumn
  class TreeViewColumn
    def self.new_with_attributes(*args)
      obj = allocate
      obj.send :initialize_with_attributes, *args
      obj
    end

    def set_attributes(renderer, attributes)
      attributes.each do |attribute, column|
        add_attribute renderer, attribute.to_s, column
      end
    end

    private

    def initialize_with_attributes(title, renderer, attributes = {})
      initialize
      set_title title
      pack_start(renderer, false)
      set_attributes(renderer, attributes)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.11.0 lib/gir_ffi-gtk/tree_view_column.rb
gir_ffi-gtk-0.10.0 lib/gir_ffi-gtk/tree_view_column.rb
gir_ffi-gtk-0.9.0 lib/gir_ffi-gtk/tree_view_column.rb