diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-07-15 10:45:57 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-07-15 11:51:09 -0400 |
commit | a8926c9d873ce968353a2eb1d3930c4f1ac79c94 (patch) | |
tree | 5e5f7cfc0fcb9bcce6a0c1c8c0a2065223c37419 /gtk/gtkwindow.c | |
parent | 443f8ddf6bbb15d4516bf2b5fd2c8b77fa10f840 (diff) | |
download | gtk+-a8926c9d873ce968353a2eb1d3930c4f1ac79c94.tar.gz |
gdk: Drop configure events
Replace configure events with a GdkSurface::size-changed signal.
This is part of the move to use events only for input.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r-- | gtk/gtkwindow.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 9f495c12ab..03210d53de 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -6869,6 +6869,7 @@ gtk_window_realize (GtkWidget *widget) gtk_widget_set_surface (widget, surface); g_signal_connect_swapped (surface, "notify::state", G_CALLBACK (surface_state_changed), widget); + g_signal_connect_swapped (surface, "size-changed", G_CALLBACK (gtk_window_configure), widget); gtk_widget_register_surface (widget, surface); GTK_WIDGET_CLASS (gtk_window_parent_class)->realize (widget); @@ -7007,6 +7008,9 @@ gtk_window_unrealize (GtkWidget *widget) g_signal_handlers_disconnect_by_func (_gtk_widget_get_surface (widget), G_CALLBACK (surface_state_changed), widget); + g_signal_handlers_disconnect_by_func (_gtk_widget_get_surface (widget), + G_CALLBACK (gtk_window_configure), + widget); GTK_WIDGET_CLASS (gtk_window_parent_class)->unrealize (widget); |