Minor comment and indention cleanups.
This commit is contained in:
parent
f53a9d5eb1
commit
2128ac2b55
5 changed files with 8 additions and 10 deletions
|
@ -45,7 +45,6 @@ trepeating_button_definition::tresolution::tresolution(const config& cfg)
|
|||
* * state_disabled, the repeating_button is disabled.
|
||||
* * state_pressed, the left mouse repeating_button is down.
|
||||
* * state_focussed, the mouse is over the repeating_button.
|
||||
*
|
||||
*/
|
||||
// Note the order should be the same as the enum tstate in
|
||||
// repeating_button.hpp.
|
||||
|
|
|
@ -64,7 +64,6 @@ tscroll_label_definition::tresolution::tresolution(const config& cfg)
|
|||
* The following states exist:
|
||||
* * state_enabled, the scroll label is enabled.
|
||||
* * state_disabled, the scroll label is disabled.
|
||||
*
|
||||
*/
|
||||
// Note the order should be the same as the enum tstate is scroll_label.hpp.
|
||||
state.push_back(tstate_definition(cfg.child("state_enabled")));
|
||||
|
|
|
@ -42,8 +42,8 @@ twidget* tbuilder_label::build() const
|
|||
widget->set_text_alignment(text_alignment);
|
||||
|
||||
DBG_GUI_G << "Window builder: placed label '"
|
||||
<< id << "' with definition '"
|
||||
<< definition << "'.\n";
|
||||
<< id << "' with definition '"
|
||||
<< definition << "'.\n";
|
||||
|
||||
return widget;
|
||||
}
|
||||
|
|
|
@ -62,12 +62,12 @@ twidget* tbuilder_tree_view::build() const
|
|||
widget->set_indention_step_size(indention_step_size);
|
||||
|
||||
DBG_GUI_G << "Window builder: placed tree_view '"
|
||||
<< id << "' with definition '"
|
||||
<< definition << "'.\n";
|
||||
<< id << "' with definition '"
|
||||
<< definition << "'.\n";
|
||||
|
||||
boost::intrusive_ptr<const ttree_view_definition::tresolution> conf =
|
||||
boost::dynamic_pointer_cast
|
||||
<const ttree_view_definition::tresolution>(widget->config());
|
||||
boost::dynamic_pointer_cast
|
||||
<const ttree_view_definition::tresolution>(widget->config());
|
||||
assert(conf);
|
||||
|
||||
widget->init_grid(conf->grid);
|
||||
|
|
|
@ -53,10 +53,10 @@ void taddon_connect::pre_show(CVideo& /*video*/, twindow& window)
|
|||
find_widget<ttext_box>(&window, "host_name", false);
|
||||
tbutton& update_cmd =
|
||||
find_widget<tbutton>(&window, "update_addons", false);
|
||||
update_cmd.set_active( allow_updates_ );
|
||||
update_cmd.set_active(allow_updates_);
|
||||
tbutton& remove_cmd =
|
||||
find_widget<tbutton>(&window, "remove_addons", false);
|
||||
remove_cmd.set_active( allow_remove_ );
|
||||
remove_cmd.set_active(allow_remove_);
|
||||
|
||||
host_widget.set_value(host_name_);
|
||||
window.keyboard_capture(&host_widget);
|
||||
|
|
Loading…
Add table
Reference in a new issue