[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30027] trunk/blender/source/blender/ editors/space_outliner/outliner.c: library tooltip for outliner icons

Campbell Barton ideasman42 at gmail.com
Tue Jul 6 13:14:36 CEST 2010


Revision: 30027
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30027
Author:   campbellbarton
Date:     2010-07-06 13:14:35 +0200 (Tue, 06 Jul 2010)

Log Message:
-----------
library tooltip for outliner icons

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_outliner/outliner.c

Modified: trunk/blender/source/blender/editors/space_outliner/outliner.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/outliner.c	2010-07-06 10:49:58 UTC (rev 30026)
+++ trunk/blender/source/blender/editors/space_outliner/outliner.c	2010-07-06 11:14:35 UTC (rev 30027)
@@ -4210,11 +4210,11 @@
 	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)





More information about the Bf-blender-cvs mailing list