[gimp] libgimp: use item API instead of deprecated drawable API



commit ef9c292e37079eb6e52ab4deaab257054d864bac
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jul 9 13:28:57 2010 +0200

    libgimp: use item API instead of deprecated drawable API

 libgimp/gimpmenu.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgimp/gimpmenu.c b/libgimp/gimpmenu.c
index 81b1dd7..b51fe6c 100644
--- a/libgimp/gimpmenu.c
+++ b/libgimp/gimpmenu.c
@@ -176,7 +176,7 @@ gimp_layer_menu_new (GimpConstraintFunc constraint,
         for (j = 0; j < n_layers; j++)
           if (! constraint || (* constraint) (images[i], layers[j], data))
             {
-              name = gimp_drawable_get_name (layers[j]);
+              name = gimp_item_get_name (layers[j]);
               gimp_menu_add_item (menu, image_label, name, layers[j]);
               g_free (name);
 
@@ -255,7 +255,7 @@ gimp_channel_menu_new (GimpConstraintFunc constraint,
         for (j = 0; j < n_channels; j++)
           if (! constraint || (* constraint) (images[i], channels[j], data))
             {
-              name = gimp_drawable_get_name (channels[j]);
+              name = gimp_item_get_name (channels[j]);
               gimp_menu_add_item (menu, image_label, name, channels[j]);
               g_free (name);
 
@@ -334,7 +334,7 @@ gimp_drawable_menu_new (GimpConstraintFunc constraint,
         for (j = 0; j < n_layers; j++)
           if (! constraint || (* constraint) (images[i], layers[j], data))
             {
-              name = gimp_drawable_get_name (layers[j]);
+              name = gimp_item_get_name (layers[j]);
               gimp_menu_add_item (menu, image_label, name, layers[j]);
               g_free (name);
 
@@ -354,7 +354,7 @@ gimp_drawable_menu_new (GimpConstraintFunc constraint,
         for (j = 0; j < n_channels; j++)
           if (! constraint || (* constraint) (images[i], channels[j], data))
             {
-              name = gimp_drawable_get_name (channels[j]);
+              name = gimp_item_get_name (channels[j]);
               gimp_menu_add_item (menu, image_label, name, channels[j]);
               g_free (name);
 



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