Skip to content

Commit

Permalink
GUI2: dropped a remaining t-prefix from a type
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Oct 19, 2019
1 parent b0d18af commit 167f4a1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/gui/core/placer.cpp
Expand Up @@ -24,13 +24,13 @@
namespace gui2
{

placer_base* placer_base::build(const tgrow_direction grow_direction,
placer_base* placer_base::build(const grow_direction grow_direction,
const unsigned parallel_items)
{
switch(grow_direction.v) {
case tgrow_direction::horizontal:
case grow_direction::horizontal:
return new implementation::placer_horizontal_list(parallel_items);
case tgrow_direction::vertical:
case grow_direction::vertical:
return new implementation::placer_vertical_list(parallel_items);
};

Expand Down
4 changes: 2 additions & 2 deletions src/gui/core/placer.hpp
Expand Up @@ -53,7 +53,7 @@ class placer_base
/***** ***** Types. ***** *****/

/** The direction the placer should grow towards. */
MAKE_ENUM(tgrow_direction,
MAKE_ENUM(grow_direction,
(horizontal, "horizontal")
(vertical, "vertical")
)
Expand All @@ -75,7 +75,7 @@ class placer_base
* only horizontally or vertically placed items
* the value should be 1.
*/
static placer_base* build(const tgrow_direction grow_direction,
static placer_base* build(const grow_direction grow_direction,
const unsigned parallel_items);

virtual ~placer_base();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/widgets/pane.cpp
Expand Up @@ -422,7 +422,7 @@ namespace implementation
builder_pane::builder_pane(const config& cfg)
: builder_widget(cfg)
, grow_direction(
lexical_cast<placer_base::tgrow_direction>(cfg["grow_direction"]))
lexical_cast<placer_base::grow_direction>(cfg["grow_direction"]))
, parallel_items(cfg["parallel_items"])
, item_definition(new builder_grid(cfg.child("item_definition", "[pane]")))
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/widgets/pane.hpp
Expand Up @@ -206,7 +206,7 @@ struct builder_pane : public builder_widget

widget* build(const replacements_map& replacements) const;

placer_base::tgrow_direction grow_direction;
placer_base::grow_direction grow_direction;

unsigned parallel_items;

Expand Down

0 comments on commit 167f4a1

Please sign in to comment.