Browse Source

Fix dont work focus_password (#17910)

Applied patch #3207

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/slim/trunk@193 7c53e7cc-98ea-0310-8f1f-a0b24da60408
iwamatsu 12 years ago
parent
commit
48a5d7ecf2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      panel.cpp

+ 3 - 3
panel.cpp

@@ -622,12 +622,10 @@ void Panel::SlimDrawString8(XftDraw *d, XftColor *color, XftFont *font,
     XftDrawString8(d, color, font, x, y, reinterpret_cast<const FcChar8*>(str.c_str()), str.length());
 }
 
-
 Panel::ActionType Panel::getAction(void) const{
     return action;
 };
 
-
 void Panel::Reset(void){
     ResetName();
     ResetPasswd();
@@ -644,11 +642,13 @@ void Panel::ResetPasswd(void){
 
 void Panel::SetName(const string& name){
     NameBuffer=name;
-    return;
+    action = Login;
 };
+
 const string& Panel::GetName(void) const{
     return NameBuffer;
 };
+
 const string& Panel::GetPasswd(void) const{
     return PasswdBuffer;
 };