2.5: various one-liner fixes
[blender.git] / source / blender / editors / interface / interface_templates.c
index 8b01c341565382b2baf91ad9f73237ab4ced6d00..4383ba8858bfbbeb0f3c213400437d08abe973bc 100644 (file)
@@ -1558,7 +1558,7 @@ ListBase uiTemplateList(uiLayout *layout, bContext *C, PointerRNA *ptr, char *pr
                                        /* XXX hardcoded */
                                        if(itemptr.type == &RNA_MeshTextureFaceLayer || itemptr.type == &RNA_MeshColorLayer) {
                                                uiBlockSetEmboss(block, UI_EMBOSSN);
-                                               uiItemR(subrow, "", ICON_SCENE, &itemptr, "active_render", 0, 0, 0);
+                                               uiDefIconButR(block, TOG, 0, ICON_SCENE, 0, 0, UI_UNIT_X, UI_UNIT_Y, &itemptr, "active_render", 0, 0, 0, 0, 0, NULL);
                                                uiBlockSetEmboss(block, UI_EMBOSS);
                                        }