forked from AuroraMiddleware/gtk
container: Remove an unnecessary check
GtkWindow implements GtkRoot, so we can avoid treating them separately.
This commit is contained in:
parent
d24d0e9667
commit
7927bcf6c5
@ -371,9 +371,7 @@ gtk_container_idle_sizer (GdkFrameClock *clock,
|
|||||||
*/
|
*/
|
||||||
if (gtk_widget_needs_allocate (GTK_WIDGET (container)))
|
if (gtk_widget_needs_allocate (GTK_WIDGET (container)))
|
||||||
{
|
{
|
||||||
if (GTK_IS_WINDOW (container))
|
if (GTK_IS_ROOT (container))
|
||||||
gtk_window_check_resize (GTK_WINDOW (container));
|
|
||||||
else if (GTK_IS_ROOT (container))
|
|
||||||
gtk_native_check_resize (GTK_NATIVE (container));
|
gtk_native_check_resize (GTK_NATIVE (container));
|
||||||
else
|
else
|
||||||
g_warning ("gtk_container_idle_sizer() called on a non-native non-window");
|
g_warning ("gtk_container_idle_sizer() called on a non-native non-window");
|
||||||
|
Loading…
Reference in New Issue
Block a user