mirror of https://github.com/GNOME/gimp.git
support mnemonics in parameter labels.
2007-03-08 Sven Neumann <sven@gimp.org> * plug-ins/pygimp/gimpfu.py: support mnemonics in parameter labels. * plug-ins/pygimp/plug-ins/foggify.py * plug-ins/pygimp/plug-ins/colorxhtml.py * plug-ins/pygimp/plug-ins/shadow_bevel.py * plug-ins/pygimp/plug-ins/palette-offset.py * plug-ins/pygimp/plug-ins/palette-sort.py: added mnemonics. svn path=/trunk/; revision=22074
This commit is contained in:
parent
a092677a4d
commit
4af6da98e1
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2007-03-08 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/gimpfu.py: support mnemonics in parameter labels.
|
||||
|
||||
* plug-ins/pygimp/plug-ins/foggify.py
|
||||
* plug-ins/pygimp/plug-ins/colorxhtml.py
|
||||
* plug-ins/pygimp/plug-ins/shadow_bevel.py
|
||||
* plug-ins/pygimp/plug-ins/palette-offset.py
|
||||
* plug-ins/pygimp/plug-ins/palette-sort.py: added mnemonics.
|
||||
|
||||
2007-03-08 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/base/pixel-surround.c: fixed boundary case.
|
||||
|
|
|
@ -637,15 +637,18 @@ def _interact(proc_name, start_params):
|
|||
def_val = defaults[i]
|
||||
|
||||
label = gtk.Label(desc)
|
||||
label.set_alignment(1.0, 0.5)
|
||||
table.attach(label, 1,2, i,i+1, xoptions=gtk.FILL)
|
||||
label.set_use_underline(True)
|
||||
label.set_alignment(0.0, 0.5)
|
||||
table.attach(label, 1, 2, i, i+1, xoptions=gtk.FILL)
|
||||
label.show()
|
||||
|
||||
if pf_type in (PF_SPINNER, PF_SLIDER, PF_RADIO):
|
||||
wid = _edit_mapping[pf_type](def_val, params[i][4])
|
||||
else:
|
||||
wid = _edit_mapping[pf_type](def_val)
|
||||
|
||||
|
||||
label.set_mnemonic_widget(wid)
|
||||
|
||||
table.attach(wid, 2,3, i,i+1, yoptions=0)
|
||||
|
||||
if pf_type != PF_TEXT:
|
||||
|
|
|
@ -189,14 +189,14 @@ register(
|
|||
N_("Colored XHTML"),
|
||||
"RGB",
|
||||
[
|
||||
(PF_RADIO, "source", _("Character source"), 0,
|
||||
(PF_RADIO, "source", _("Character _source"), 0,
|
||||
((_("Source code"), CHARS_SOURCE),
|
||||
(_("Text file"), CHARS_FILE),
|
||||
(_("Entry box"), CHARS_PARAMETER))),
|
||||
(PF_FILE, "characters", _("File to read or characters to use"),
|
||||
(PF_FILE, "characters", _("_File to read or characters to use"),
|
||||
""),
|
||||
(PF_INT, "font-size", _("Font size in pixels"), 10),
|
||||
(PF_BOOL, "separate", _("Write a separate CSS file"), True)
|
||||
(PF_INT, "font-size", _("Fo_nt size in pixels"), 10),
|
||||
(PF_BOOL, "separate", _("_Write a separate CSS file"), True)
|
||||
],
|
||||
[],
|
||||
colorxhtml, on_query=register_save,
|
||||
|
|
|
@ -56,10 +56,10 @@ register(
|
|||
N_("_Fog..."),
|
||||
"RGB*, GRAY*",
|
||||
[
|
||||
(PF_STRING, "name", _("Layer name"), _("Clouds")),
|
||||
(PF_COLOUR, "colour", _("Fog color"), (240, 180, 70)),
|
||||
(PF_SLIDER, "turbulence", _("Turbulence"), 1.0, (0, 10, 0.1)),
|
||||
(PF_SLIDER, "opacity", _("Opacity"), 100, (0, 100, 1)),
|
||||
(PF_STRING, "name", _("_Layer name"), _("Clouds")),
|
||||
(PF_COLOUR, "colour", _("_Fog color"), (240, 180, 70)),
|
||||
(PF_SLIDER, "turbulence", _("_Turbulence"), 1.0, (0, 10, 0.1)),
|
||||
(PF_SLIDER, "opacity", _("Op_acity"), 100, (0, 100, 1)),
|
||||
],
|
||||
[],
|
||||
foggify,
|
||||
|
|
|
@ -51,7 +51,7 @@ register(
|
|||
"",
|
||||
[
|
||||
(PF_PALETTE, "palette", _("Palette"), ""),
|
||||
(PF_INT, "amount", _("Offset"), 1),
|
||||
(PF_INT, "amount", _("Off_set"), 1),
|
||||
],
|
||||
[(PF_PALETTE, "new-palette", "Result")],
|
||||
palette_offset,
|
||||
|
|
|
@ -55,14 +55,14 @@ register(
|
|||
"",
|
||||
[
|
||||
(PF_PALETTE, "palette", _("Palette"), ""),
|
||||
(PF_RADIO, "model", _("Color model"), "HSV",
|
||||
(PF_RADIO, "model", _("Color _model"), "HSV",
|
||||
((_("RGB"), "RGB"),
|
||||
(_("HSV"), "HSV"))),
|
||||
(PF_RADIO, "channel", _("Channel to sort"), 2,
|
||||
(PF_RADIO, "channel", _("Channel to _sort"), 2,
|
||||
((_("Red or Hue"), 0),
|
||||
(_("Green or Saturation"), 1),
|
||||
(_("Blue or Value"), 2))),
|
||||
(PF_BOOL, "ascending", _("Ascending"), True)
|
||||
(PF_BOOL, "ascending", _("_Ascending"), True)
|
||||
],
|
||||
[],
|
||||
palette_sort,
|
||||
|
|
|
@ -66,11 +66,11 @@ register(
|
|||
N_("_Drop Shadow and Bevel..."),
|
||||
"RGBA, GRAYA",
|
||||
[
|
||||
(PF_SLIDER, "blur", _("Shadow blur"), 6, (1, 30, 1)),
|
||||
(PF_BOOL, "bevel", _("Bevel"), True),
|
||||
(PF_BOOL, "shadow", _("Drop shadow"), True),
|
||||
(PF_INT, "drop-x", _("Drop shadow X displacement"), 3),
|
||||
(PF_INT, "drop-y", _("Drop shadow Y displacement"), 6)
|
||||
(PF_SLIDER, "blur", _("_Shadow blur"), 6, (1, 30, 1)),
|
||||
(PF_BOOL, "bevel", _("_Bevel"), True),
|
||||
(PF_BOOL, "shadow", _("_Drop shadow"), True),
|
||||
(PF_INT, "drop-x", _("Drop shadow _X displacement"), 3),
|
||||
(PF_INT, "drop-y", _("Drop shadow _Y displacement"), 6)
|
||||
],
|
||||
[],
|
||||
shadow_bevel,
|
||||
|
|
Loading…
Reference in New Issue