機能 #751 » 0001-Fix-deprecation-warning-Enumerator.new-without-block.patch
core/mui/gtk_inneruserlist.rb | ||
---|---|---|
27 | 27 |
# self |
28 | 28 |
def add_user(users) |
29 | 29 |
type_strict users => Users |
30 |
(users - Enumerator.new(model).map{ |model,path,iter| iter[COL_USER] }).deach { |user|
|
|
30 |
(users - model.to_enum.map{ |model,path,iter| iter[COL_USER] }).deach { |user|
|
|
31 | 31 |
iter = model.append |
32 | 32 |
iter[COL_ICON] = Gdk::WebImageLoader.pixbuf(user[:profile_image_url], 24, 24){ |pixbuf| |
33 | 33 |
if not destroyed? |