From 0c4c88b4495e7d3f015bf70bc4a16069dc3f82ac Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 22 Feb 2020 07:06:55 +0100 Subject: [PATCH] scrolledwindow: Inline variable into return_if_fail() --- gtk/gtkscrolledwindow.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 30c4310ce2..71a8d2c53e 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -3491,12 +3491,11 @@ gtk_scrolled_window_add (GtkContainer *container, GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (container); GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window); GtkBin *bin; - GtkWidget *child_widget, *scrollable_child; + GtkWidget *scrollable_child; GtkAdjustment *hadj, *vadj; bin = GTK_BIN (container); - child_widget = gtk_bin_get_child (bin); - g_return_if_fail (child_widget == NULL); + g_return_if_fail (gtk_bin_get_child (GTK_BIN (scrolled_window)) == NULL); /* gtk_scrolled_window_set_[hv]adjustment have the side-effect * of creating the scrollbars