Mercurial > geeqie.yaz
comparison src/trash.c @ 766:7148e125bf23
Check for existing editor command using is_valid_editor_command().
author | zas_ |
---|---|
date | Fri, 30 May 2008 07:20:25 +0000 |
parents | 2d8a8e892b5e |
children | d6a7fb4b8e7c |
comparison
equal
deleted
inserted
replaced
765:339db85846da | 766:7148e125bf23 |
---|---|
13 | 13 |
14 #include "main.h" | 14 #include "main.h" |
15 #include "trash.h" | 15 #include "trash.h" |
16 #include "utilops.h" | 16 #include "utilops.h" |
17 | 17 |
18 | 18 #include "editors.h" |
19 #include "filedata.h" | 19 #include "filedata.h" |
20 #include "ui_fileops.h" | 20 #include "ui_fileops.h" |
21 #include "ui_misc.h" | 21 #include "ui_misc.h" |
22 | 22 |
23 | 23 |
179 | 179 |
180 gchar *file_util_safe_delete_status(void) | 180 gchar *file_util_safe_delete_status(void) |
181 { | 181 { |
182 gchar *buf; | 182 gchar *buf; |
183 | 183 |
184 if (options->editor[CMD_DELETE].command) | 184 if (is_valid_editor_command(CMD_DELETE)) |
185 { | 185 { |
186 buf = g_strdup(_("Deletion by external command")); | 186 buf = g_strdup(_("Deletion by external command")); |
187 } | 187 } |
188 else | 188 else |
189 { | 189 { |