library tooltip for outliner icons
authorCampbell Barton <ideasman42@gmail.com>
Tue, 6 Jul 2010 11:14:35 +0000 (11:14 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 6 Jul 2010 11:14:35 +0000 (11:14 +0000)
source/blender/editors/space_outliner/outliner.c

index bcf186ad4e9a4e37847a4d89f6a92ba2e6800b1f..794c700f8ceeed045f048f2e952b5833ac7fa345 100644 (file)
@@ -4210,11 +4210,11 @@ static void tselem_draw_icon_uibut(struct DrawIconArg *arg, int icon)
        if(arg->x >= arg->xmax) 
                UI_icon_draw(arg->x, arg->y, icon);
        else {
-               uiBut *but= uiDefIconBut(arg->block, LABEL, 0, icon, arg->x-4, arg->y, ICON_DEFAULT_WIDTH, ICON_DEFAULT_WIDTH, NULL, 0.0, 0.0, 1.0, arg->alpha, "");
+               uiBut *but= uiDefIconBut(arg->block, LABEL, 0, icon, arg->x-4, arg->y, ICON_DEFAULT_WIDTH, ICON_DEFAULT_WIDTH, NULL, 0.0, 0.0, 1.0, arg->alpha, (arg->id && arg->id->lib) ? arg->id->lib->name : "");
                if(arg->id)
                        uiButSetDragID(but, arg->id);
        }
-       
+
 }
 
 static void tselem_draw_icon(uiBlock *block, int xmax, float x, float y, TreeStoreElem *tselem, TreeElement *te, float alpha)