237 |
237 |
textselector_unselect end
|
238 |
238 |
|
239 |
239 |
def iob_icon_pixbuf
|
240 |
|
[ ["reply.png".freeze, message.user.verified? ? "verified.png" : "etc.png"],
|
241 |
|
[if message.user.protected?; then "protected.png".freeze else "retweet.png".freeze end,
|
|
240 |
[ ["reply.png".freeze, (message.respond_to?(:user) && message.user.verified?) ? "verified.png" : "etc.png"],
|
|
241 |
[if message.respond_to?(:user) && message.user.protected?; then "protected.png".freeze else "retweet.png".freeze end,
|
242 |
242 |
message.favorite? ? "unfav.png".freeze : "fav.png".freeze] ] end
|
243 |
243 |
|
244 |
244 |
def iob_icon_pixbuf_off
|
245 |
245 |
world, = Plugin.filtering(:world_current, nil)
|
246 |
246 |
[ [(UserConfig[:show_replied_icon] and message.mentioned_by_me? and "reply.png".freeze),
|
247 |
|
UserConfig[:show_verified_icon] && message.user.verified? && "verified.png"],
|
248 |
|
[ if UserConfig[:show_protected_icon] and message.user.protected?
|
|
247 |
UserConfig[:show_verified_icon] && message.respond_to?(:user) && message.user.verified? && "verified.png"],
|
|
248 |
[ if UserConfig[:show_protected_icon] and message.respond_to?(:user) and message.user.protected?
|
249 |
249 |
"protected.png".freeze
|
250 |
250 |
elsif Plugin[:miracle_painter].shared?(message, world)
|
251 |
251 |
"retweet.png".freeze end,
|
... | ... | |
390 |
390 |
layout end
|
391 |
391 |
|
392 |
392 |
def header_left_markup
|
393 |
|
user = message.user
|
394 |
|
if user.respond_to?(:idname)
|
395 |
|
Pango.parse_markup("<b>#{Pango.escape(user.idname)}</b> #{Pango.escape(user.name || '')}")
|
|
393 |
if message.respond_to?(:user)
|
|
394 |
user = message.user
|
|
395 |
if user.respond_to?(:idname)
|
|
396 |
Pango.parse_markup("<b>#{Pango.escape(user.idname)}</b> #{Pango.escape(user.name || '')}")
|
|
397 |
else
|
|
398 |
Pango.parse_markup(Pango.escape(user.name || ''))
|
|
399 |
end
|
396 |
400 |
else
|
397 |
|
Pango.parse_markup(Pango.escape(user.name || ''))
|
|
401 |
Pango.parse_markup(Pango.escape(''))
|
398 |
402 |
end
|
399 |
403 |
end
|
400 |
404 |
|
... | ... | |
434 |
438 |
|
435 |
439 |
# アイコンのpixbufを返す
|
436 |
440 |
def main_icon
|
437 |
|
@main_icon ||= message.user.icon.load_pixbuf(width: icon_width, height: icon_height){|pixbuf|
|
|
441 |
@main_icon ||= message.icon.load_pixbuf(width: icon_width, height: icon_height){|pixbuf|
|
438 |
442 |
@main_icon = pixbuf
|
439 |
443 |
on_modify
|
440 |
444 |
}
|