Commit 640afea5 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

Bug 471681 – Keyboard shortcuts for brush size/params need feedback

2009-03-19  Sven Neumann  <sven@gimp.org>

	Bug 471681 – Keyboard shortcuts for brush size/params need 
feedback

	* app/core/gimpbrushgenerated.c
	* app/core/gimpcontext.c
	* app/paint/gimppaintoptions.c: applied patch from Stephen G. 
that
	marks some strings for translation.


svn path=/trunk/; revision=28182
parent 5db2dd5b
2009-03-19 Sven Neumann <sven@gimp.org>
Bug 471681 Keyboard shortcuts for brush size/params need feedback
* app/core/gimpbrushgenerated.c
* app/core/gimpcontext.c
* app/paint/gimppaintoptions.c: applied patch from Stephen G. that
marks some strings for translation.
2009-03-17 Sven Neumann <sven@gimp.org>
* libgimpthumb/gimpthumbnail.c (gimp_thumbnail_save): Drop Windows
......@@ -680,7 +689,7 @@
above bug:
* app/actions/actions.[ch]: add new function action_message()
which pushes a temp message to a display's statusbar.
which pushes a temp message to a display's statusbar.h
(action_select_property): add GimpDisplay* parameter and call
action_message() for int and double property changes.
......
......@@ -32,6 +32,8 @@
#include "gimpbrushgenerated-load.h"
#include "gimpbrushgenerated-save.h"
#include "gimp-intl.h"
#define OVERSAMPLING 4
......@@ -122,39 +124,45 @@ gimp_brush_generated_class_init (GimpBrushGeneratedClass *klass)
brush_class->transform_mask = gimp_brush_generated_transform_mask;
g_object_class_install_property (object_class, PROP_SHAPE,
g_param_spec_enum ("shape", NULL, NULL,
g_param_spec_enum ("shape", NULL,
_("Brush Shape"),
GIMP_TYPE_BRUSH_GENERATED_SHAPE,
GIMP_BRUSH_GENERATED_CIRCLE,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_RADIUS,
g_param_spec_double ("radius", NULL, NULL,
g_param_spec_double ("radius", NULL,
_("Brush Radius"),
0.1, 4000.0, 5.0,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_SPIKES,
g_param_spec_int ("spikes", NULL, NULL,
g_param_spec_int ("spikes", NULL,
_("Brush Spikes"),
2, 20, 2,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_HARDNESS,
g_param_spec_double ("hardness", NULL, NULL,
g_param_spec_double ("hardness", NULL,
_("Brush Hardness"),
0.0, 1.0, 0.0,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_ASPECT_RATIO,
g_param_spec_double ("aspect-ratio",
NULL, NULL,
NULL,
_("Brush Aspect Ratio"),
1.0, 20.0, 1.0,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_ANGLE,
g_param_spec_double ("angle", NULL, NULL,
g_param_spec_double ("angle", NULL,
_("Brush Angle"),
0.0, 180.0, 0.0,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
......
......@@ -590,7 +590,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, GIMP_CONTEXT_PROP_OPACITY,
gimp_context_prop_names[GIMP_CONTEXT_PROP_OPACITY],
NULL,
_("Opacity"),
GIMP_OPACITY_TRANSPARENT,
GIMP_OPACITY_OPAQUE,
GIMP_OPACITY_OPAQUE,
......@@ -598,7 +598,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, GIMP_CONTEXT_PROP_PAINT_MODE,
gimp_context_prop_names[GIMP_CONTEXT_PROP_PAINT_MODE],
NULL,
_("Paint Mode"),
GIMP_TYPE_LAYER_MODE_EFFECTS,
GIMP_NORMAL_MODE,
GIMP_PARAM_STATIC_STRINGS);
......
......@@ -32,6 +32,8 @@
#include "gimppaintoptions.h"
#include "gimp-intl.h"
#define DEFAULT_BRUSH_SCALE 1.0
#define DEFAULT_BRUSH_ANGLE 0.0
......@@ -228,11 +230,11 @@ gimp_paint_options_class_init (GimpPaintOptionsClass *klass)
G_PARAM_CONSTRUCT_ONLY));
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_SCALE,
"brush-scale", NULL,
"brush-scale", _("Brush Scale"),
0.01, 10.0, DEFAULT_BRUSH_SCALE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRUSH_ANGLE,
"brush-angle", NULL,
"brush-angle", _("Brush Angle"),
-180.0, 180.0, DEFAULT_BRUSH_ANGLE,
GIMP_PARAM_STATIC_STRINGS);
......
2009-03-19 Sven Neumann <sven@gimp.org>
* POTFILES.in: added missing files.
2009-03-18 Mișu Moldovan <dumol@gnome.ro>
* ro.po: updated Romanian translation by Cristian Secară
......
......@@ -89,6 +89,7 @@ app/core/gimp-edit.c
app/core/gimp-gradients.c
app/core/gimp-gui.c
app/core/gimp-modules.c
app/core/gimp-tags.c
app/core/gimp-units.c
app/core/gimp-user-install.c
app/core/gimp.c
......@@ -239,9 +240,11 @@ app/paint/gimpdodgeburn.c
app/paint/gimperaser.c
app/paint/gimpheal.c
app/paint/gimpink.c
app/paint/gimpinkoptions.c
app/paint/gimppaintbrush.c
app/paint/gimppaintcore.c
app/paint/gimppaintcore-stroke.c
app/paint/gimppaintcore.c
app/paint/gimppaintoptions.c
app/paint/gimppencil.c
app/paint/gimpperspectiveclone.c
app/paint/gimpsmudge.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment