[gnome-games/wip/exalm/gtk4: 29/30] game-thumbnail: Replace get_preferred_height_for_width() with measure()



commit 147d72605713eb4076f021192547907e02cd0b05
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]