[gnome-games/wip/exalm/gtk4: 30/31] game-thumbnail: Replace get_preferred_height_for_width() with measure()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 30/31] game-thumbnail: Replace get_preferred_height_for_width() with measure()
- Date: Sat, 20 Oct 2018 21:39:08 +0000 (UTC)
commit e6e9062f0e9792f1387c67cd87198e351db0e52c
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Sep 23 16:51:41 2018 +0500
game-thumbnail: Replace get_preferred_height_for_width() with measure()
src/ui/game-thumbnail.vala | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/game-thumbnail.vala b/src/ui/game-thumbnail.vala
index b47991b0..58f6e712 100644
--- a/src/ui/game-thumbnail.vala
+++ b/src/ui/game-thumbnail.vala
@@ -73,8 +73,9 @@ private class Games.GameThumbnail: Gtk.Bin {
return Gtk.SizeRequestMode.HEIGHT_FOR_WIDTH;
}
- public override void get_preferred_height_for_width (int width, out int minimum_height, out int
natural_height) {
- minimum_height = natural_height = width;
+ public override void measure (Gtk.Orientation orientation, int for_size, out int minimum, out int
natural, out int minimum_baseline, out int natural_baseline) {
+ minimum = natural = for_size;
+ minimum_baseline = natural_baseline = 0;
}
public override void snapshot (Gtk.Snapshot snapshot) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]