[gtk/wip/otte/dnd: 20/22] scrolledwindow: Inline variable into return_if_fail()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/dnd: 20/22] scrolledwindow: Inline variable into return_if_fail()
- Date: Sat, 22 Feb 2020 06:39:20 +0000 (UTC)
commit 0c4c88b4495e7d3f015bf70bc4a16069dc3f82ac
Author: Benjamin Otte <otte redhat com>
Date: Sat Feb 22 07:06:55 2020 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]