[gtk/wip/matthiasc/popup2: 38/126] window: Implement GtkRoot::check_resize
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup2: 38/126] window: Implement GtkRoot::check_resize
- Date: Tue, 26 Mar 2019 23:30:59 +0000 (UTC)
commit d2e4eeced9c79dc38747f0191312c0063c94fe57
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 091a432e81..a287b1da32 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2433,12 +2433,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]