X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2Fwidgets%2Fauth%2FCmsLogin.java;h=51c0ab4f55adb2fb204b32e4b70ab39e5770b902;hb=94ec9b5a0282c8119ee9831688124bc96f3a62b8;hp=4533f649851361ad5605baa79b4d7dcc49284cfe;hpb=5b3108fe285bca50565b58b63fa4feddc96c0765;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/auth/CmsLogin.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/auth/CmsLogin.java index 4533f6498..51c0ab4f5 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/auth/CmsLogin.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/auth/CmsLogin.java @@ -116,7 +116,7 @@ public class CmsLogin implements CmsStyles, CallbackHandler { } } - protected Composite getCredentialsBlock() { + public Composite getCredentialsBlock() { return credentialsBlock; } @@ -220,7 +220,7 @@ public class CmsLogin implements CmsStyles, CallbackHandler { child.dispose(); createContents(parent); if (parent.getParent() != null) - parent.getParent().layout(); + parent.getParent().layout(true, true); else parent.layout(); usernameT.setText(usernameStr); @@ -251,7 +251,7 @@ public class CmsLogin implements CmsStyles, CallbackHandler { Button button = new Button(c, SWT.RADIO); CmsUiUtils.style(button, CMS_USER_MENU_ITEM); button.setData(i); - button.setText(LocaleUtils.lead(locale.getDisplayName(locale), locale) + " (" + locale + ")"); + button.setText(LocaleUtils.toLead(locale.getDisplayName(locale), locale) + " (" + locale + ")"); // button.addListener(SWT.Selection, listener); button.addSelectionListener(selectionListener); if (i == localeChoice.getSelectedIndex())