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



commit 0f473265c58c3ab2e248517186b2510e6e795212
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 49c2d97d..23cc1883 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 = -1;
        }
 
        public override void snapshot (Gtk.Snapshot snapshot) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]