[gnome-games/wip/exalm/gtk4: 32/33] 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: 32/33] game-thumbnail: Replace get_preferred_height_for_width() with measure()
- Date: Sun, 21 Oct 2018 15:16:17 +0000 (UTC)
commit b27d57dd9d71f0129b64418fa177403a8eacb648
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]