diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-01-21 23:19:24 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-01-21 23:19:24 -0500 |
commit | 7927bcf6c5268b0f84f522626ac6983d5e8826db (patch) | |
tree | b52d09e84bbceb070531c49e8452bb17ff70cd18 | |
parent | d24d0e9667c13f5e635d3a7dbc4c879732218823 (diff) | |
download | gtk+-7927bcf6c5268b0f84f522626ac6983d5e8826db.tar.gz |
container: Remove an unnecessary check
GtkWindow implements GtkRoot, so we can avoid
treating them separately.
-rw-r--r-- | gtk/gtkcontainer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 3650f4ee97..9da5fb4c6e 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -371,9 +371,7 @@ gtk_container_idle_sizer (GdkFrameClock *clock, */ if (gtk_widget_needs_allocate (GTK_WIDGET (container))) { - if (GTK_IS_WINDOW (container)) - gtk_window_check_resize (GTK_WINDOW (container)); - else if (GTK_IS_ROOT (container)) + if (GTK_IS_ROOT (container)) gtk_native_check_resize (GTK_NATIVE (container)); else g_warning ("gtk_container_idle_sizer() called on a non-native non-window"); |