Skip to content

Instantly share code, notes, and snippets.

@osak
Created March 20, 2012 13:23
Show Gist options
  • Select an option

  • Save osak/2135528 to your computer and use it in GitHub Desktop.

Select an option

Save osak/2135528 to your computer and use it in GitHub Desktop.
Index: dmlistview.rb
===================================================================
--- dmlistview.rb (リビジョン 714)
+++ dmlistview.rb (作業コピー)
@@ -34,8 +34,7 @@
renderer = Gtk::CellRendererText.new
Delayer.new{
if not destroyed?
- width = get_cell_area(nil, get_column(C_TEXT)).width
- renderer.set_property "wrap-width", width
+ renderer.set_property "wrap-width", 10
renderer.set_property "wrap-mode", Pango::WRAP_CHAR end }
renderer } },
{:type => Integer},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment