[gtk/wip/matthiasc/popup4: 6/79] window: Implement GtkRoot::check_resize



commit cbfce7866157e5f7d1c18f38d107b830728c4ea0
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 17 00:37:46 2019 -0400

    window: Implement GtkRoot::check_resize
    
    Hook up the existing window configure machinery
    to the new idle sizer.

 gtk/gtkwindow.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b3cb887443..2fc2b15e19 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2336,12 +2336,19 @@ gtk_window_root_get_surface_transform (GtkRoot *root,
   *y = margin.top + border.top + padding.top;
 }
 
+static void
+gtk_window_root_check_resize (GtkRoot *root)
+{
+  gtk_window_check_resize (GTK_WINDOW (root));
+}
+
 static void
 gtk_window_root_interface_init (GtkRootInterface *iface)
 {
   iface->get_display = gtk_window_root_get_display;
   iface->get_renderer = gtk_window_root_get_renderer;
   iface->get_surface_transform = gtk_window_root_get_surface_transform;
+  iface->check_resize = gtk_window_root_check_resize;
 }
 
 /**


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