summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-01 16:46:54 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-01 16:46:54 +0300
commit1c9de0aa5375af4f37308dea014aebacbc3daba5 (patch)
tree41f9446f178374a33c5ffe346576fac51a188d2a /src
parent47f2b13ff11fcfe551fe212e3d36b5adcb21f598 (diff)
downloadmanaplus-1c9de0aa5375af4f37308dea014aebacbc3daba5.tar.gz
manaplus-1c9de0aa5375af4f37308dea014aebacbc3daba5.tar.bz2
manaplus-1c9de0aa5375af4f37308dea014aebacbc3daba5.tar.xz
manaplus-1c9de0aa5375af4f37308dea014aebacbc3daba5.zip
Fix login dialog size.
Diffstat (limited to 'src')
-rw-r--r--src/gui/logindialog.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp
index b1c80b102..e0033793b 100644
--- a/src/gui/logindialog.cpp
+++ b/src/gui/logindialog.cpp
@@ -88,6 +88,7 @@ LoginDialog::LoginDialog(LoginData *data, std::string serverName,
mUpdateHost(updateHost),
mServerName(serverName)
{
+
gcn::Label *serverLabel1 = new Label(_("Server:"));
gcn::Label *serverLabel2 = new Label(serverName);
serverLabel2->adjustSize();
@@ -131,12 +132,11 @@ LoginDialog::LoginDialog(LoginData *data, std::string serverName,
mPassField->addActionListener(this);
place(0, 0, serverLabel1);
- place(1, 0, serverLabel2, 8).setPadding(1);
-
+ place(1, 0, serverLabel2, 8);
place(0, 1, userLabel);
place(0, 2, passLabel);
- place(1, 1, mUserField, 8).setPadding(1);
- place(1, 2, mPassField, 8).setPadding(1);
+ place(1, 1, mUserField, 8);
+ place(1, 2, mPassField, 8);
place(0, 6, mUpdateTypeLabel, 1);
place(1, 6, mUpdateTypeDropDown, 8);
place(0, 7, mCustomUpdateHost, 9);
@@ -146,9 +146,8 @@ LoginDialog::LoginDialog(LoginData *data, std::string serverName,
place(2, 10, mServerButton);
place(3, 10, mLoginButton);
- reflowLayout();
-
addKeyListener(this);
+ setContentSize(300, 200);
center();
setVisible(true);