Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Former-commit-id: 4d35615
  • Loading branch information
tkashkin committed Oct 31, 2018
1 parent 43e0933 commit 1ebf530
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data/Game.vala
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ namespace GameHub.Data
{
owned get
{
return Utils.strip_name(name.replace(" ", "_"), "_'.,");
return Utils.strip_name(name.replace(" ", "_"), "_.,");
}
}

Expand Down
7 changes: 6 additions & 1 deletion src/ui/views/GamesView/GamesView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,12 @@ namespace GameHub.UI.Views.GamesView
{
var label = new HeaderLabel(f ? C_("status_header", "Favorites") : item.game.status.header);
label.get_style_context().add_class("games-list-header");
label.set_size_request(1024, -1); // ugly hack
games_list.size_allocate.connect(alloc => {
label.set_size_request(alloc.width, -1);
});
Allocation alloc;
games_list.get_allocation(out alloc);
label.set_size_request(alloc.width, -1);
row.set_header(label);
}
});
Expand Down

0 comments on commit 1ebf530

Please sign in to comment.