バグ #1547 » 0001-get_iter_at_offset-deprecated.patch
core/mui/gtk_intelligent_textview.rb | ||
---|---|---|
125 | 125 |
start = pos.offset |
126 | 126 |
pixbuf = photo.load_pixbuf(width: font_size, height: font_size) do |loaded_pixbuf| |
127 | 127 |
unless buffer.destroyed? |
128 |
insertion_start = buffer.get_iter_at_offset(start)
|
|
129 |
buffer.delete(insertion_start, buffer.get_iter_at_offset(start+1))
|
|
128 |
insertion_start = buffer.get_iter_at(offset: start)
|
|
129 |
buffer.delete(insertion_start, buffer.get_iter_at(offset: start+1))
|
|
130 | 130 |
buffer.insert(insertion_start, loaded_pixbuf) |
131 | 131 |
end |
132 | 132 |
end |
... | ... | |
139 | 139 |
}, nil) |
140 | 140 |
start = pos.offset |
141 | 141 |
buffer.insert(pos, note.description) |
142 |
buffer.apply_tag(tagname, buffer.get_iter_at_offset(start), pos)
|
|
142 |
buffer.apply_tag(tagname, buffer.get_iter_at(offset: start), pos)
|
|
143 | 143 |
else |
144 | 144 |
buffer.insert(pos, note.description, { tags: %w[shell] }) |
145 | 145 |
end |
core/mui/gtk_postbox.rb | ||
---|---|---|
397 | 397 |
@options[:delegated_by].post.buffer.text = '' |
398 | 398 |
elsif !(@header.empty? and @footer.empty?) |
399 | 399 |
post.buffer.text = @header + @footer |
400 |
post.buffer.place_cursor(post.buffer.get_iter_at_offset(@header.size)) end |
|
400 |
post.buffer.place_cursor(post.buffer.get_iter_at(offset: @header.size)) |
|
401 |
end |
|
401 | 402 |
post.accepts_tab = false end |
402 | 403 | |
403 | 404 |
# PostBoxを複製するときのために、このPostBoxを生成した時に指定された全ての名前付き引数と値のペアを返す |