py api - added PyC_UnicodeFromByteAndSize() to match PyUnicode_FromStringAndSize()
[blender.git] / source / blender / editors / interface / interface_templates.c
index c6bc0f58b5b6e594a5e662da65f0e532e892e81d..34f9849fac74c32f945a975ce839e45a92e59727 100644 (file)
@@ -2085,7 +2085,7 @@ static void list_item_row(bContext *C, uiLayout *layout, PointerRNA *ptr, Pointe
        if(icon == ICON_NONE || icon == ICON_DOT)
                icon= 0;
 
-       namebuf= RNA_struct_name_get_alloc(itemptr, NULL, 0);
+       namebuf= RNA_struct_name_get_alloc(itemptr, NULL, 0, NULL);
        name= (namebuf)? namebuf: "";
 
        /* hardcoded types */
@@ -2270,7 +2270,7 @@ void uiTemplateList(uiLayout *layout, bContext *C, PointerRNA *ptr, const char *
 
                                if(found) {
                                        /* create button */
-                                       name= RNA_struct_name_get_alloc(&itemptr, NULL, 0);
+                                       name= RNA_struct_name_get_alloc(&itemptr, NULL, 0, NULL);
                                        icon= list_item_icon_get(C, &itemptr, rnaicon, 0);
                                        uiItemL(row, (name)? name: "", icon);