[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29744] trunk/blender/source/blender/ editors/interface/interface_layout.c: align menu text to the left when displayed in a panel.

Campbell Barton ideasman42 at gmail.com
Sun Jun 27 21:10:36 CEST 2010


Revision: 29744
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29744
Author:   campbellbarton
Date:     2010-06-27 21:10:36 +0200 (Sun, 27 Jun 2010)

Log Message:
-----------
align menu text to the left when displayed in a panel.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/interface_layout.c

Modified: trunk/blender/source/blender/editors/interface/interface_layout.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_layout.c	2010-06-27 19:04:44 UTC (rev 29743)
+++ trunk/blender/source/blender/editors/interface/interface_layout.c	2010-06-27 19:10:36 UTC (rev 29744)
@@ -1296,8 +1296,10 @@
 
 	if(layout->root->type == UI_LAYOUT_HEADER)
 		uiBlockSetEmboss(block, UI_EMBOSS);
-	else if(layout->root->type == UI_LAYOUT_PANEL)
+	else if(layout->root->type == UI_LAYOUT_PANEL) {
 		but->type= MENU;
+		but->flag |= UI_TEXT_LEFT;
+	}
 }
 
 void uiItemM(uiLayout *layout, bContext *C, char *menuname, char *name, int icon)





More information about the Bf-blender-cvs mailing list