バグ #1202 » toolbar_visible.diff
| core/plugin/gtk/toolbar_generator.rb | ||
|---|---|---|
|
def self.generate(container, event, role)
|
||
|
Thread.new{
|
||
|
Plugin.filtering(:command, {}).first.values.select{ |command|
|
||
|
command[:icon] and command[:role] == role and command[:condition] === event }
|
||
|
command[:visible] == true and command[:icon] and
|
||
|
command[:role] == role and command[:condition] === event }
|
||
|
}.next{ |commands|
|
||
|
commands.each{ |command|
|
||
|
face = command[:show_face] || command[:name] || command[:slug].to_s
|
||