Commit 72534a62 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

game-icon-view: Remove 'size' property

Since thumbnails are now sized automatically, and labels take the whole
width, only set width-request for the whole widget.
parent 3f5daeec
......@@ -215,7 +215,7 @@ private class Games.CollectionIconView : Gtk.Bin {
var child = new Gtk.FlowBoxChild ();
game_view.visible = true;
game_view.size = game_view_size;
game_view.width_request = game_view_size;
child.visible = true;
child.add (game_view);
......@@ -295,7 +295,7 @@ private class Games.CollectionIconView : Gtk.Bin {
assert (game_view != null);
game_view.size = size;
game_view.width_request = size;
});
}
}
......@@ -20,24 +20,12 @@ private class Games.GameIconView : Gtk.Box {
}
}
public int size {
set {
thumbnail.width_request = value;
thumbnail.height_request = value;
title.width_request = value;
subtitle.width_request = value;
}
}
[GtkChild]
private GameThumbnail thumbnail;
[GtkChild]
private Gtk.Label title;
[GtkChild]
private Gtk.Label subtitle;
public GameIconView (Game game) {
this.game = game;
this.size = 256;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment