Sha256: 824c8897fa09788c8590d22b6f7fe73465007894364cb4e9cd1eb8fcc80cadfa
Contents?: true
Size: 668 Bytes
Versions: 9
Compression:
Stored size: 668 Bytes
Contents
# frozen_string_literal: true Gtk.load_class :TreeViewColumn module Gtk # Overrides for Gtk::TreeViewColumn class TreeViewColumn setup_method! :new 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
9 entries across 9 versions & 1 rubygems