~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/actions/select-actions.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
38
38
#include "gimp-intl.h"
39
39
 
40
40
 
41
 
static GimpActionEntry select_actions[] =
 
41
static const GimpActionEntry select_actions[] =
42
42
{
43
43
  { "selection-editor-popup", GIMP_STOCK_TOOL_RECT_SELECT,
44
44
    N_("Selection Editor Menu"), NULL, NULL, NULL,
47
47
  { "select-menu", NULL, N_("_Select") },
48
48
 
49
49
  { "select-all", GIMP_STOCK_SELECTION_ALL,
50
 
    N_("_All"), "<control>A",
51
 
    N_("Select all"),
 
50
    N_("select|_All"), "<control>A",
 
51
    N_("Select everything"),
52
52
    G_CALLBACK (select_all_cmd_callback),
53
53
    GIMP_HELP_SELECTION_ALL },
54
54
 
55
55
  { "select-none", GIMP_STOCK_SELECTION_NONE,
56
 
    N_("_None"), "<control><shift>A",
57
 
    N_("Select none"),
 
56
    N_("select|_None"), "<control><shift>A",
 
57
    N_("Dismiss the selection"),
58
58
    G_CALLBACK (select_none_cmd_callback),
59
59
    GIMP_HELP_SELECTION_NONE },
60
60
 
61
61
  { "select-invert", GIMP_STOCK_INVERT,
62
62
    N_("_Invert"), "<control>I",
63
 
    N_("Invert selection"),
 
63
    N_("Invert the selection"),
64
64
    G_CALLBACK (select_invert_cmd_callback),
65
65
    GIMP_HELP_SELECTION_INVERT },
66
66
 
67
67
  { "select-float", GIMP_STOCK_FLOATING_SELECTION,
68
 
    N_("_Float"), "<control><shift>L", NULL,
 
68
    N_("_Float"), "<control><shift>L",
 
69
    N_("Create a floating selection"),
69
70
    G_CALLBACK (select_float_cmd_callback),
70
71
    GIMP_HELP_SELECTION_FLOAT },
71
72
 
72
73
  { "select-feather", NULL,
73
 
    N_("Fea_ther..."), NULL, NULL,
 
74
    N_("Fea_ther..."), NULL,
 
75
    N_("Blur the selection border so that it fades out smoothly"),
74
76
    G_CALLBACK (select_feather_cmd_callback),
75
77
    GIMP_HELP_SELECTION_FEATHER },
76
78
 
77
79
  { "select-sharpen", NULL,
78
 
    N_("_Sharpen"), NULL, NULL,
 
80
    N_("_Sharpen"), NULL,
 
81
    N_("Remove fuzzyness from the selection"),
79
82
    G_CALLBACK (select_sharpen_cmd_callback),
80
83
    GIMP_HELP_SELECTION_SHARPEN },
81
84
 
82
85
  { "select-shrink", GIMP_STOCK_SELECTION_SHRINK,
83
 
    N_("S_hrink..."), NULL, NULL,
 
86
    N_("S_hrink..."), NULL,
 
87
    N_("Contract the selection"),
84
88
    G_CALLBACK (select_shrink_cmd_callback),
85
89
    GIMP_HELP_SELECTION_SHRINK },
86
90
 
87
91
  { "select-grow", GIMP_STOCK_SELECTION_GROW,
88
 
    N_("_Grow..."), NULL, NULL,
 
92
    N_("_Grow..."), NULL,
 
93
    N_("Enlarge the selection"),
89
94
    G_CALLBACK (select_grow_cmd_callback),
90
95
    GIMP_HELP_SELECTION_GROW },
91
96
 
92
97
  { "select-border", GIMP_STOCK_SELECTION_BORDER,
93
 
    N_("Bo_rder..."), NULL, NULL,
 
98
    N_("Bo_rder..."), NULL,
 
99
    N_("Replace the selection by its border"),
94
100
    G_CALLBACK (select_border_cmd_callback),
95
101
    GIMP_HELP_SELECTION_BORDER },
96
102
 
97
103
  { "select-save", GIMP_STOCK_SELECTION_TO_CHANNEL,
98
104
    N_("Save to _Channel"), NULL,
99
 
    N_("Save selection to channel"),
 
105
    N_("Save the selection to a channel"),
100
106
    G_CALLBACK (select_save_cmd_callback),
101
107
    GIMP_HELP_SELECTION_TO_CHANNEL },
102
108
 
103
109
  { "select-stroke", GIMP_STOCK_SELECTION_STROKE,
104
110
    N_("_Stroke Selection..."), NULL,
105
 
    N_("Stroke selection..."),
 
111
    N_("Paint along the selection outline"),
106
112
    G_CALLBACK (select_stroke_cmd_callback),
107
113
    GIMP_HELP_SELECTION_STROKE },
108
114
 
109
115
  { "select-stroke-last-values", GIMP_STOCK_SELECTION_STROKE,
110
116
    N_("_Stroke Selection"), NULL,
111
 
    N_("Stroke selection with last values"),
 
117
    N_("Stroke the selection with last used values"),
112
118
    G_CALLBACK (select_stroke_last_vals_cmd_callback),
113
119
    GIMP_HELP_SELECTION_STROKE }
114
120
};
126
132
select_actions_update (GimpActionGroup *group,
127
133
                       gpointer         data)
128
134
{
129
 
  GimpImage    *gimage   = action_data_get_image (data);
 
135
  GimpImage    *image   = action_data_get_image (data);
130
136
  GimpDrawable *drawable = NULL;
131
137
  gboolean      fs       = FALSE;
132
138
  gboolean      sel      = FALSE;
133
139
 
134
 
  if (gimage)
 
140
  if (image)
135
141
    {
136
 
      drawable = gimp_image_active_drawable (gimage);
 
142
      drawable = gimp_image_active_drawable (image);
137
143
 
138
 
      fs  = (gimp_image_floating_sel (gimage) != NULL);
139
 
      sel = ! gimp_channel_is_empty (gimp_image_get_mask (gimage));
 
144
      fs  = (gimp_image_floating_sel (image) != NULL);
 
145
      sel = ! gimp_channel_is_empty (gimp_image_get_mask (image));
140
146
    }
141
147
 
142
148
#define SET_SENSITIVE(action,condition) \