summaryrefslogtreecommitdiff
path: root/dash
diff options
authorManuel de la Pena <manuel@canonical.com>2013-06-05 18:06:33 +0200
committerManuel de la Pena <manuel@canonical.com>2013-06-05 18:06:33 +0200
commitcbdda9cdd00ae080240e1c66fdc25a514a0a49cc (patch)
tree0ae312f90e2e667f3d76bdce09c6659670353025 /dash
parent45a2a05e331bb163b6a117c32841a324ed9c1751 (diff)
Add actions to the tab iterator so that the default action is the correctly highlighted.
(bzr r3263.2.39)
Diffstat (limited to 'dash')
-rw-r--r--dash/previews/ErrorPreview.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/dash/previews/ErrorPreview.cpp b/dash/previews/ErrorPreview.cpp
index c3da312c6..9afd4b1cc 100644
--- a/dash/previews/ErrorPreview.cpp
+++ b/dash/previews/ErrorPreview.cpp
@@ -219,16 +219,20 @@ nux::Layout* ErrorPreview::GetFooter()
buttons_data_layout->AddSpace(20, 1);
if(buttons_map_[ErrorPreview::CANCEL_ACTION].GetPointer()){
+ ActionButton* button = (ActionButton*)buttons_map_[ErrorPreview::CANCEL_ACTION].GetPointer();
buttons_data_layout->AddView(buttons_map_[ErrorPreview::CANCEL_ACTION].GetPointer(),
1, nux::MINOR_POSITION_CENTER, nux::MINOR_SIZE_FULL, 100.0f,
nux::NUX_LAYOUT_END);
- AddChild((ActionButton*)buttons_map_[ErrorPreview::CANCEL_ACTION].GetPointer());
+ AddChild(button);
+ tab_iterator_->Append(button);
}
if(buttons_map_[ErrorPreview::GO_TO_U1_ACTION].GetPointer()){
+ ActionButton* button = (ActionButton*)buttons_map_[ErrorPreview::GO_TO_U1_ACTION].GetPointer();
buttons_data_layout->AddView(buttons_map_[ErrorPreview::GO_TO_U1_ACTION].GetPointer(),
1, nux::MINOR_POSITION_CENTER, nux::MINOR_SIZE_FULL, 100.0f,
nux::NUX_LAYOUT_END);
- AddChild((ActionButton*)buttons_map_[ErrorPreview::GO_TO_U1_ACTION].GetPointer());
+ AddChild(button);
+ tab_iterator_->Prepend(button);
}
return buttons_data_layout;
}