[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-treev-cbbr

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 10月 10日 (水) 17:57:14 JST


-------------------------
REMOTE_ADDR = 184.145.82.7
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-cbbr
-------------------------
@@ -23,7 +23,6 @@
  # column will be an editable combo-box and the last column
  # will be the name of the product category or the product to buy.
  def setup_tree_view(treeview)
- 
    # Create a Gtk::ListStore that will be used for the
    # combo box renderer.
    model = Gtk::ListStore.new(String)
@@ -40,17 +39,14 @@
  
    renderer = Gtk::CellRendererText.new
    column = Gtk::TreeViewColumn.new("Buy", renderer, "text" => BUY_COLUMN)
-  
    treeview.append_column(column)
  
    # Create the GtkCellRendererCombo and add the tree model.
    # Then add the renderer to a new column and add the column
    # to the GtkTreeView
- 
    renderer = Gtk::CellRendererCombo.new
    column = Gtk::TreeViewColumn.new("Count", renderer, "text" => COUNT_COLUMN)
- ##  renderer.width = 20			# doesn't work
- ##  renderer.set_fixed_size(40, -1)	# doesn't work
+ ##  renderer.width = 20		# doesn't work
+ ##  renderer.set_fixed_size(20, -1)	# doesn't work
    column.set_cell_data_func(renderer) do |tvc, cell, model, iter|
      cell.editable = iter.has_child? ? false : true
      fix_parents_total(iter) if !iter.has_child?




ruby-gnome2-cvs メーリングリストの案内
Back to archive index