[gimp] libgimp: use gimp_item_get_name() instead of deprecated API



commit 056a3bf256b495fc7a21ec3b7bbe85a23f5aa4b1
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jul 9 11:22:18 2010 +0200

    libgimp: use gimp_item_get_name() instead of deprecated API

 libgimp/gimpitemcombobox.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/libgimp/gimpitemcombobox.c b/libgimp/gimpitemcombobox.c
index 02f5552..5cb5f69 100644
--- a/libgimp/gimpitemcombobox.c
+++ b/libgimp/gimpitemcombobox.c
@@ -421,15 +421,10 @@ gimp_item_combo_box_model_add (GtkListStore           *store,
       if (! constraint || (* constraint) (image, items[i], data))
         {
           gchar     *image_name = gimp_image_get_name (image);
-          gchar     *item_name;
+          gchar     *item_name  = gimp_item_get_name (items[i]);
           gchar     *label;
           GdkPixbuf *thumb;
 
-          if (type == VECTORS_COMBO_BOX)
-            item_name = gimp_vectors_get_name (items[i]);
-          else
-            item_name = gimp_drawable_get_name (items[i]);
-
           label = g_strdup_printf ("%s-%d/%s-%d",
                                    image_name, image,
                                    item_name, items[i]);



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