mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-10 04:27:45 -05:00
url-mode: rename activate_url() -> url_activate(), make public
This commit is contained in:
parent
8689389523
commit
116b8fa635
2 changed files with 6 additions and 3 deletions
|
|
@ -127,8 +127,8 @@ spawn_url_launcher(struct seat *seat, struct terminal *term, const char *url,
|
|||
return spawn_url_launcher_with_token(term, url, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
activate_url(struct seat *seat, struct terminal *term, const struct url *url,
|
||||
void
|
||||
url_activate(struct seat *seat, struct terminal *term, const struct url *url,
|
||||
uint32_t serial)
|
||||
{
|
||||
char *url_string = NULL;
|
||||
|
|
@ -262,7 +262,7 @@ urls_input(struct seat *seat, struct terminal *term,
|
|||
}
|
||||
|
||||
if (match) {
|
||||
activate_url(seat, term, match, serial);
|
||||
url_activate(seat, term, match, serial);
|
||||
|
||||
switch (match->action) {
|
||||
case URL_ACTION_COPY:
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@ static inline bool urls_mode_is_active(const struct terminal *term)
|
|||
|
||||
void urls_collect(
|
||||
const struct terminal *term, enum url_action action, url_list_t *urls);
|
||||
|
||||
void url_activate(struct seat *seat, struct terminal *term,
|
||||
const struct url *url, uint32_t serial);
|
||||
void urls_assign_key_combos(const struct config *conf, url_list_t *urls);
|
||||
|
||||
void urls_render(struct terminal *term);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue