Few fixes to the keymap preflet to make it good enough for the alpha 1. Lots of

things could be rewritten in a cleaner way but i'd rather finish my keymap 
management patch as i rewrote the preflet for it anyway. For example the '(Current)' 
item shouldn't be needed anymore but is still there in case the keymap:name attribute 
read fails or if the original keymap file doesn't exist anymore (for example, applying 
a user keymap, quiting the preflet, deleting the keymap file, and reloading the 
preflet)  

* Revert/apply data wasn't correctly loaded when the first load was on a system 
keymap. This would allow revert/apply right after starting the preflet. That was the 
cause of #2659.
* fCurrentMapName wasn't updated after a Revert or Apply
* Select the active keymap in the lists after reverting.

Quick cosmetical fix follows.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28313 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexandre Deckner
2008-10-24 11:50:45 +00:00
parent 500d847a1d
commit 7a249e96f5
2 changed files with 38 additions and 15 deletions
+1
View File
@@ -86,6 +86,7 @@ protected:
void FillUserMaps();
bool SelectCurrentMap(BListView *list);
BString GetActiveKeymapName();
BListView *fSystemListView;
BListView *fUserListView;