Mercurial > geeqie
diff src/editors.c @ 753:477f48ba28d8
rewritten utilops.h:
- better integration of external commands
- filter commands
author | nadvornik |
---|---|
date | Sat, 24 May 2008 22:44:18 +0000 |
parents | 8a8873e7a552 |
children | 7148e125bf23 |
line wrap: on
line diff
--- a/src/editors.c Sat May 24 20:01:59 2008 +0000 +++ b/src/editors.c Sat May 24 22:44:18 2008 +0000 @@ -869,6 +869,13 @@ return (editor_command_parse(options->editor[n].command, NULL, NULL) & EDITOR_KEEP_FS); } +gint editor_is_filter(gint n) +{ + if (!is_valid_editor_command(n)) return FALSE; + + return (editor_command_parse(options->editor[n].command, NULL, NULL) & EDITOR_DEST); +} + const gchar *editor_get_error_str(gint flags) { if (flags & EDITOR_ERROR_EMPTY) return _("Editor template is empty.");