[haiku-commits] r36343 - haiku/trunk/src/apps/readonlybootprompt

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 19 Apr 2010 10:46:29 +0200 (CEST)

Author: stippi
Date: 2010-04-19 10:46:29 +0200 (Mon, 19 Apr 2010)
New Revision: 36343
Changeset: http://dev.haiku-os.org/changeset/36343/haiku
Ticket: http://dev.haiku-os.org/ticket/5576

Modified:
   haiku/trunk/src/apps/readonlybootprompt/BootPromptWindow.cpp
Log:
Patch by idefix, make sure the lists are properly scrolled to the selection
after showing the window. Thanks! Fixes #5576.


Modified: haiku/trunk/src/apps/readonlybootprompt/BootPromptWindow.cpp
===================================================================
--- haiku/trunk/src/apps/readonlybootprompt/BootPromptWindow.cpp        
2010-04-19 08:21:21 UTC (rev 36342)
+++ haiku/trunk/src/apps/readonlybootprompt/BootPromptWindow.cpp        
2010-04-19 08:46:29 UTC (rev 36343)
@@ -130,12 +130,16 @@
                )
        );
 
-       // This call in the first _PopulateKeymaps had no effect yet, since the
-       // list wasn't attatched to the window yet.
+       CenterOnScreen();
+       Show();
+       Lock();
+
+       // This call in the first _PopulateLanguages/Keymaps had no effect yet,
+       // since the list wasn't attached to the window yet.
+       fLanguagesListView->ScrollToSelection();
        fKeymapsListView->ScrollToSelection();
 
-       CenterOnScreen();
-       Show();
+       Unlock();
 }
 
 
@@ -295,6 +299,8 @@
                        printf("failed to get BLanguage for %s\n", 
languageString);
        }
 
+       fLanguagesListView->ScrollToSelection();
+
        // Re-enable sending the selection message.
        fLanguagesListView->SetSelectionMessage(
                new BMessage(MSG_LANGUAGE_SELECTED));


Other related posts:

  • » [haiku-commits] r36343 - haiku/trunk/src/apps/readonlybootprompt - superstippi