[gtk] container: Remove an unnecessary check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] container: Remove an unnecessary check
- Date: Wed, 22 Jan 2020 04:45:06 +0000 (UTC)
commit 7927bcf6c5268b0f84f522626ac6983d5e8826db
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 21 23:19:24 2020 -0500
container: Remove an unnecessary check
GtkWindow implements GtkRoot, so we can avoid
treating them separately.
gtk/gtkcontainer.c | 4 +---
1 file changed, 1 insertion(+), 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]