[gimp] app: image && drawable -> drawable
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: image && drawable -> drawable
- Date: Thu, 30 Jun 2011 21:41:15 +0000 (UTC)
commit 9866d70c6836b6a13df3e073382e8feea381a7d7
Author: Martin Nordholts <martinn src gnome org>
Date: Thu Jun 30 23:28:33 2011 +0200
app: image && drawable -> drawable
If there is a drawable, there is also an image, so we don't need to
check for that. Now gcc can't complain that we don't have parenthesis
around "image && drawable" for some future statements.
app/actions/file-actions.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/actions/file-actions.c b/app/actions/file-actions.c
index 834ef04..bb41a45 100644
--- a/app/actions/file-actions.c
+++ b/app/actions/file-actions.c
@@ -276,15 +276,15 @@ file_actions_update (GimpActionGroup *group,
#define SET_SENSITIVE(action,condition) \
gimp_action_group_set_action_sensitive (group, action, (condition) != 0)
- SET_SENSITIVE ("file-save", image && drawable);
- SET_SENSITIVE ("file-save-as", image && drawable);
- SET_SENSITIVE ("file-save-a-copy", image && drawable);
+ SET_SENSITIVE ("file-save", drawable);
+ SET_SENSITIVE ("file-save-as", drawable);
+ SET_SENSITIVE ("file-save-a-copy", drawable);
SET_SENSITIVE ("file-revert", image && (gimp_image_get_uri (image) || source));
SET_SENSITIVE ("file-export-to", export);
SET_VISIBLE ("file-export-to", export || ! show_overwrite);
SET_SENSITIVE ("file-overwrite", show_overwrite);
SET_VISIBLE ("file-overwrite", show_overwrite);
- SET_SENSITIVE ("file-export", image && drawable);
+ SET_SENSITIVE ("file-export", drawable);
SET_SENSITIVE ("file-create-template", image);
if (export)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]