バグ #1514 » 0002-GTK3-TreeView-visible_range-refs-1514.patch
core/mui/cairo_timeline.rb | ||
---|---|---|
52 | 52 |
@tl.set_size_request(100, 100) |
53 | 53 |
@tl.get_column(0).sizing = Gtk::TreeViewColumn::FIXED |
54 | 54 |
@tl.ssc(:draw){ |
55 |
# FIXME: gtk3, visible_rangeが実装されていないのでemit_expose_miraclepainterを呼べない |
|
56 |
# emit_expose_miraclepainter |
|
55 |
emit_expose_miraclepainter |
|
57 | 56 |
false } |
58 | 57 | |
59 | 58 |
init_remover |
... | ... | |
186 | 185 |
# スクロールなどの理由で新しくTLに現れたMiraclePainterにシグナルを送る |
187 | 186 |
def emit_expose_miraclepainter |
188 | 187 |
@exposing_miraclepainter ||= [] |
189 |
if @tl.visible_range
|
|
190 |
current, last = @tl.visible_range.map{ |path| @tl.model.get_iter(path) }
|
|
188 |
val, current, last = @tl.visible_range.map{ |path| @tl.model.get_iter(path) }
|
|
189 |
if val
|
|
191 | 190 |
messages = Set.new |
192 | 191 |
while current[0].to_i >= last[0].to_i |
193 | 192 |
messages << current[1] |
core/mui/gtk_userlist.rb | ||
---|---|---|
73 | 73 |
private |
74 | 74 | |
75 | 75 |
def emit_expose_user |
76 |
if @listview.visible_range
|
|
77 |
current, last = @listview.visible_range
|
|
76 |
val, current, last = @listview.visible_range
|
|
77 |
if val
|
|
78 | 78 |
Enumerator.new{|y| |
79 | 79 |
while (current <=> last) < 1 |
80 | 80 |
y << @listview.model.get_iter(current) |