Mercurial > geeqie.yaz
comparison src/menu.c @ 1400:67573155210c
Add helper macros EDITOR_ERRORS() and EDITOR_ERRORS_BUT_SKIPPED() to clean up the code a bit. Minor tidy up.
author | zas_ |
---|---|
date | Sun, 08 Mar 2009 15:30:15 +0000 |
parents | 9e7aed6ba6bd |
children | 3bc4967aaa57 |
comparison
equal
deleted
inserted
replaced
1399:7dfa34e4de15 | 1400:67573155210c |
---|---|
74 { | 74 { |
75 const EditorDescription *editor = work->data; | 75 const EditorDescription *editor = work->data; |
76 work = work->next; | 76 work = work->next; |
77 gboolean active = TRUE; | 77 gboolean active = TRUE; |
78 | 78 |
79 if (fd_list) | 79 if (fd_list && EDITOR_ERRORS(editor_command_parse(editor, fd_list, NULL))) |
80 { | 80 active = FALSE; |
81 gint flags = editor_command_parse(editor, fd_list, NULL); | |
82 if ((flags & EDITOR_ERROR_MASK) != 0) | |
83 active = FALSE; | |
84 } | |
85 | 81 |
86 if (active) | 82 if (active) |
87 { | 83 { |
88 const gchar *stock_id = NULL; | 84 const gchar *stock_id = NULL; |
89 if (editor->icon && register_theme_icon_as_stock(editor->key, editor->icon)) | 85 if (editor->icon && register_theme_icon_as_stock(editor->key, editor->icon)) |