[gnome-games/wip/exalm/gtk4: 29/38] application-window: Add missing argument to size_allocate() vfunc override



commit 227d2702180516deae6c9fc7696df3bc5bb4856b
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Jul 29 13:31:05 2018 +0500

    application-window: Add missing argument to size_allocate() vfunc override

 src/ui/application-window.vala   | 4 ++--
 src/ui/collection-icon-view.vala | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index 6fbde7c9..3083aae4 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -140,8 +140,8 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
                return display_view.quit_game ();
        }
 
-       public override void size_allocate (Gtk.Allocation allocation) {
-               base.size_allocate (allocation);
+       public override void size_allocate (int width, int height, int baseline) {
+               base.size_allocate (width, height, baseline);
 
                if (window_size_update_timeout == -1 && !is_maximized)
                        window_size_update_timeout = Timeout.add (WINDOW_SIZE_UPDATE_DELAY_MILLISECONDS, 
store_window_size);
diff --git a/src/ui/collection-icon-view.vala b/src/ui/collection-icon-view.vala
index c7384884..d5768a3d 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -249,12 +249,12 @@ private class Games.CollectionIconView : Gtk.Bin {
        }
 
        [GtkCallback]
-       private void on_size_allocate (Gtk.Allocation allocation) {
+       private void on_size_allocate (Gtk.Widget widget, int width, int height, int baseline) {
                // If the window's width is less than half the width of a 1920×1080
                // screen, display the game thumbnails at half the size to see more of
                // them rather than a few huge thumbnails, making Games more usable on
                // small screens.
-               if (allocation.width < 960)
+               if (width < 960)
                        get_style_context ().remove_class ("large");
                else
                        get_style_context ().add_class ("large");


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