[gimp] app: don't use GIMP_IMAGE_TYPE_IS_FOO() in drawable_actions_update()



commit bacf1abac2725b500492bdbb9f8bc2df2baee881
Author: Michael Natterer <mitch gimp org>
Date:   Sat Apr 7 01:04:38 2012 +0200

    app: don't use GIMP_IMAGE_TYPE_IS_FOO() in drawable_actions_update()

 app/actions/drawable-actions.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/app/actions/drawable-actions.c b/app/actions/drawable-actions.c
index 03a16c7..5359f3b 100644
--- a/app/actions/drawable-actions.c
+++ b/app/actions/drawable-actions.c
@@ -189,11 +189,10 @@ drawable_actions_update (GimpActionGroup *group,
 
       if (drawable)
         {
-          GimpImageType  drawable_type = gimp_drawable_type (drawable);
-          GimpItem      *item;
+          GimpItem *item;
 
-          is_rgb     = GIMP_IMAGE_TYPE_IS_RGB     (drawable_type);
-          is_indexed = GIMP_IMAGE_TYPE_IS_INDEXED (drawable_type);
+          is_rgb     = gimp_drawable_is_rgb (drawable);
+          is_indexed = gimp_drawable_is_indexed (drawable);
 
           if (GIMP_IS_LAYER_MASK (drawable))
             item = GIMP_ITEM (gimp_layer_mask_get_layer (GIMP_LAYER_MASK (drawable)));



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