Skip to content

Commit

Permalink
Merge pull request #910 from wesnoth/remove-pane-experiment
Browse files Browse the repository at this point in the history
Stop replacing listboxes with panes with --new-widgets
  • Loading branch information
jyrkive committed Jan 10, 2017
2 parents ae07bcb + 941e1c2 commit c2e6de3
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/gui/widgets/listbox.cpp
Expand Up @@ -979,34 +979,6 @@ widget* builder_listbox::build() const
}
return widget;
#else
if(new_widgets) {

pane* p = new pane(list_builder);
p->set_id(id);


grid* g = new grid();
g->set_rows_cols(1, 1);
#if 0
g->set_child(
p
, 0
, 0
, grid::VERTICAL_GROW_SEND_TO_CLIENT
| grid::HORIZONTAL_GROW_SEND_TO_CLIENT
, grid::BORDER_ALL);
#else
viewport* view = new viewport(*p);
g->set_child(view,
0,
0,
grid::VERTICAL_GROW_SEND_TO_CLIENT
| grid::HORIZONTAL_GROW_SEND_TO_CLIENT,
grid::BORDER_ALL);
#endif
return g;
}

listbox* widget
= new listbox(has_minimum_, has_maximum_, generator_base::vertical_list, true);

Expand Down

0 comments on commit c2e6de3

Please sign in to comment.