diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2013-03-19 02:28:27 +0400 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2013-03-19 02:28:27 +0400 |
commit | 779b26058b7df18508e48e4f8bdbe49e9da1926b (patch) | |
tree | ee485cd709109ae3be39020c6b2d7588711c085a /source/blender/editors/gpencil/gpencil_buttons.c | |
parent | 03762409cd4f812d152e42de9c4f9853df91be0b (diff) |
Grease Pencil UI
The recent addition of the up/down arrows wasn't aligned.
Before/After: http://www.pasteall.org/pic/show.php?id=47512
Patch by Francesco Siddi.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_buttons.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_buttons.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_buttons.c b/source/blender/editors/gpencil/gpencil_buttons.c index 19c1bc34f5c..e7033ef0147 100644 --- a/source/blender/editors/gpencil/gpencil_buttons.c +++ b/source/blender/editors/gpencil/gpencil_buttons.c @@ -198,6 +198,8 @@ static void gp_drawui_layer(uiLayout *layout, bGPdata *gpd, bGPDlayer *gpl, cons uiItemR(sub, &ptr, "info", 0, "", ICON_NONE); /* move up/down */ + uiBlockBeginAlign(block); + if (gpl->prev) { but = uiDefIconBut(block, BUT, 0, ICON_TRIA_UP, 0, 0, UI_UNIT_X, UI_UNIT_Y, NULL, 0.0, 0.0, 0.0, 0.0, TIP_("Move layer up")); @@ -209,6 +211,8 @@ static void gp_drawui_layer(uiLayout *layout, bGPdata *gpd, bGPDlayer *gpl, cons uiButSetFunc(but, gp_ui_layer_down_cb, gpd, gpl); } + uiBlockEndAlign(block); + /* delete 'button' */ uiBlockSetEmboss(block, UI_EMBOSSN); /* right-align ............................... */ |