[gimp] app: a bunch of actions which should be inactive when there is no image
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: a bunch of actions which should be inactive when there is no image
- Date: Tue, 3 Dec 2013 00:24:06 +0000 (UTC)
commit 4e7bfb4e817ee6271497402d58d57ebf5bf2b533
Author: Jehan <jehan girinstud io>
Date: Tue Dec 3 11:59:54 2013 +1300
app: a bunch of actions which should be inactive when there is no image
app/actions/file-actions.c | 1 +
app/actions/view-actions.c | 56 +++++++++++++++++++++++++++----------------
2 files changed, 36 insertions(+), 21 deletions(-)
---
diff --git a/app/actions/file-actions.c b/app/actions/file-actions.c
index 8271f19..0d751d1 100644
--- a/app/actions/file-actions.c
+++ b/app/actions/file-actions.c
@@ -279,6 +279,7 @@ file_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("file-save", drawable);
SET_SENSITIVE ("file-save-as", drawable);
SET_SENSITIVE ("file-save-a-copy", drawable);
+ SET_SENSITIVE ("file-save-and-close", drawable);
SET_SENSITIVE ("file-revert", image && (gimp_image_get_uri (image) || source));
SET_SENSITIVE ("file-export", drawable);
SET_VISIBLE ("file-export", ! show_overwrite);
diff --git a/app/actions/view-actions.c b/app/actions/view-actions.c
index c021aa8..ea048c6 100644
--- a/app/actions/view-actions.c
+++ b/app/actions/view-actions.c
@@ -655,27 +655,41 @@ view_actions_update (GimpActionGroup *group,
_("Re_vert Zoom"));
}
- SET_SENSITIVE ("view-zoom-out", image);
- SET_SENSITIVE ("view-zoom-in", image);
- SET_SENSITIVE ("view-zoom-fit-in", image);
- SET_SENSITIVE ("view-zoom-fill", image);
-
- SET_SENSITIVE ("view-zoom-16-1", image);
- SET_SENSITIVE ("view-zoom-8-1", image);
- SET_SENSITIVE ("view-zoom-4-1", image);
- SET_SENSITIVE ("view-zoom-2-1", image);
- SET_SENSITIVE ("view-zoom-1-1", image);
- SET_SENSITIVE ("view-zoom-1-2", image);
- SET_SENSITIVE ("view-zoom-1-4", image);
- SET_SENSITIVE ("view-zoom-1-8", image);
- SET_SENSITIVE ("view-zoom-1-16", image);
- SET_SENSITIVE ("view-zoom-other", image);
-
- SET_SENSITIVE ("view-rotate-reset", image);
- SET_SENSITIVE ("view-rotate-90", image);
- SET_SENSITIVE ("view-rotate-180", image);
- SET_SENSITIVE ("view-rotate-270", image);
- SET_SENSITIVE ("view-rotate-other", image);
+ SET_SENSITIVE ("view-zoom", image);
+ SET_SENSITIVE ("view-zoom-minimum", image);
+ SET_SENSITIVE ("view-zoom-maximum", image);
+ SET_SENSITIVE ("view-zoom-in", image);
+ SET_SENSITIVE ("view-zoom-in-accel", image);
+ SET_SENSITIVE ("view-zoom-in-skip", image);
+ SET_SENSITIVE ("view-zoom-out", image);
+ SET_SENSITIVE ("view-zoom-out-accel", image);
+ SET_SENSITIVE ("view-zoom-out-skip", image);
+
+ SET_SENSITIVE ("view-zoom-fit-in", image);
+ SET_SENSITIVE ("view-zoom-fill", image);
+ SET_SENSITIVE ("view-zoom-revert", image);
+
+ SET_SENSITIVE ("view-zoom-16-1", image);
+ SET_SENSITIVE ("view-zoom-16-1-accel", image);
+ SET_SENSITIVE ("view-zoom-8-1", image);
+ SET_SENSITIVE ("view-zoom-8-1-accel", image);
+ SET_SENSITIVE ("view-zoom-4-1", image);
+ SET_SENSITIVE ("view-zoom-4-1-accel", image);
+ SET_SENSITIVE ("view-zoom-2-1", image);
+ SET_SENSITIVE ("view-zoom-2-1-accel", image);
+ SET_SENSITIVE ("view-zoom-1-1", image);
+ SET_SENSITIVE ("view-zoom-1-1-accel", image);
+ SET_SENSITIVE ("view-zoom-1-2", image);
+ SET_SENSITIVE ("view-zoom-1-4", image);
+ SET_SENSITIVE ("view-zoom-1-8", image);
+ SET_SENSITIVE ("view-zoom-1-16", image);
+ SET_SENSITIVE ("view-zoom-other", image);
+
+ SET_SENSITIVE ("view-rotate-reset", image);
+ SET_SENSITIVE ("view-rotate-90", image);
+ SET_SENSITIVE ("view-rotate-180", image);
+ SET_SENSITIVE ("view-rotate-270", image);
+ SET_SENSITIVE ("view-rotate-other", image);
if (image)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]