app: rename GIMP_INK_BLOB_TYPE_ELLIPSE to GIMP_INK_BLOB_TYPE_CIRCLE

- TYPE_SQUARE is also named SQUARE and not RECTANGLE
- serialization doesn't suffer from the changed name because it's the
  default value that never gets serialized
- a lot of messy code in the ink options can be replaced by a one-liner
  because the enum names now match their resp. stock items
This commit is contained in:
Michael Natterer
2010-11-14 16:29:42 +01:00
parent ae9f6d1b3f
commit c4cd420ef8
6 changed files with 16 additions and 67 deletions

View File

@ -87,7 +87,7 @@ gimp_blob_editor_class_init (GimpBlobEditorClass *klass)
g_param_spec_enum ("blob-type",
NULL, NULL,
GIMP_TYPE_INK_BLOB_TYPE,
GIMP_INK_BLOB_TYPE_ELLIPSE,
GIMP_INK_BLOB_TYPE_CIRCLE,
GIMP_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class, PROP_ASPECT,
@ -336,7 +336,7 @@ gimp_blob_editor_draw_blob (GimpBlobEditor *editor,
switch (editor->type)
{
case GIMP_INK_BLOB_TYPE_ELLIPSE:
case GIMP_INK_BLOB_TYPE_CIRCLE:
function = blob_ellipse;
break;