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



commit 3ee22e492cb8ffbca6297cd64645fd90685ac6e5
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]