[gimp] app: don't pass default names to gimp_drawable_configure()



commit f1cf31f9da3304d8d8a9f9afbb0da94638b35e38
Author: Michael Natterer <mitch gimp org>
Date:   Wed Sep 15 16:36:16 2010 +0200

    app: don't pass default names to gimp_drawable_configure()
    
    because gimp_item_configure() uses the default name from GimpItemClass
    anyway if a NULL name gets passed.

 app/core/gimpgrouplayer.c |    2 +-
 app/core/gimpselection.c  |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpgrouplayer.c b/app/core/gimpgrouplayer.c
index 33c0fd7..8536ec4 100644
--- a/app/core/gimpgrouplayer.c
+++ b/app/core/gimpgrouplayer.c
@@ -834,7 +834,7 @@ gimp_group_layer_new (GimpImage *image)
                            image,
                            0, 0, 1, 1,
                            gimp_image_base_type_with_alpha (image),
-                           _("Layer Group"));
+                           NULL);
 
   if (gimp_image_get_projection (image)->use_gegl)
     group->projection->use_gegl = TRUE;
diff --git a/app/core/gimpselection.c b/app/core/gimpselection.c
index 85bf325..9040134 100644
--- a/app/core/gimpselection.c
+++ b/app/core/gimpselection.c
@@ -151,6 +151,7 @@ gimp_selection_class_init (GimpSelectionClass *klass)
   item_class->flip                    = gimp_selection_flip;
   item_class->rotate                  = gimp_selection_rotate;
   item_class->stroke                  = gimp_selection_stroke;
+  item_class->default_name            = _("Selection Mask");
   item_class->translate_desc          = C_("undo-type", "Move Selection");
   item_class->stroke_desc             = C_("undo-type", "Stroke Selection");
 
@@ -529,7 +530,7 @@ gimp_selection_new (GimpImage *image,
                            image,
                            0, 0, width, height,
                            GIMP_GRAY_IMAGE,
-                           _("Selection Mask"));
+                           NULL);
 
   gimp_channel_set_color (channel, &black, FALSE);
   gimp_channel_set_show_masked (channel, TRUE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]