Diff
Differences From Artifact [8c611155af]:
- File channels/specbuttons.py — part of check-in [2b17639821] at 2016-10-31 21:50:02 on branch trunk — Slim down comment (too lengthy contents break gtk tooltip) (user: mario, size: 4366) [annotate] [blame] [check-ins using]
To Artifact [686c618002]:
- File channels/specbuttons.py — part of check-in [2b300a090d] at 2016-11-06 12:45:15 on branch trunk — Make action.cmd() more explicit again. Introduce cmd= override flag for action.run_fmt_url(). So that specbuttons can use it instead of just interpol(). Thus the urn:/mime handlers will engage as well. (user: mario, size: 4378) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
116 117 118 119 120 121 122 |
conf.specbuttons = r
self.update_buttons(self.parent)
# Button callback, allow for %url/%title placeholders
def action(self, cmd):
if re.search("[%$]", cmd):
row = self.parent.channel().row()
| | | 116 117 118 119 120 121 122 123 124 125 |
conf.specbuttons = r
self.update_buttons(self.parent)
# Button callback, allow for %url/%title placeholders
def action(self, cmd):
if re.search("[%$]", cmd):
row = self.parent.channel().row()
cmd = action.run_fmt_url(cmd, row=row, add_default=False, cmd=cmd)
action.run(cmd)
|