app: fix width and height properties to allow negative sizes

This commit is contained in:
Michael Natterer 2010-09-22 21:45:33 +02:00
parent 5722345cc7
commit 284403d99e
1 changed files with 4 additions and 2 deletions

View File

@ -110,12 +110,14 @@ gimp_canvas_rectangle_class_init (GimpCanvasRectangleClass *klass)
g_object_class_install_property (object_class, PROP_WIDTH,
g_param_spec_double ("width", NULL, NULL,
0, GIMP_MAX_IMAGE_SIZE, 0,
-GIMP_MAX_IMAGE_SIZE,
GIMP_MAX_IMAGE_SIZE, 0,
GIMP_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_HEIGHT,
g_param_spec_double ("height", NULL, NULL,
0, GIMP_MAX_IMAGE_SIZE, 0,
-GIMP_MAX_IMAGE_SIZE,
GIMP_MAX_IMAGE_SIZE, 0,
GIMP_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_FILLED,