projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d24d0e9
)
container: Remove an unnecessary check
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 22 Jan 2020 04:19:24 +0000
(23:19 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 22 Jan 2020 04:19:24 +0000
(23:19 -0500)
GtkWindow implements GtkRoot, so we can avoid
treating them separately.
gtk/gtkcontainer.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcontainer.c
b/gtk/gtkcontainer.c
index 3650f4ee972ca9ce0703fc73b99de0c822f7696e..9da5fb4c6e6bf963bf83f44a792c43cdd4436526 100644
(file)
--- 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");