[gtk] scrolledwindow: Remove a useless local variable



commit 1e55e016927abd4f0fd3a78f7c5b8a13390d6e68
Author: Timm Bäder <mail baedert org>
Date:   Sun Dec 22 10:48:58 2019 +0100

    scrolledwindow: Remove a useless local variable

 gtk/gtkscrolledwindow.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index e82601a530..34cc078167 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -1660,12 +1660,11 @@ gtk_scrolled_window_measure (GtkWidget      *widget,
 {
   GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget);
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
-  GtkBin *bin = GTK_BIN (scrolled_window);
   int minimum_req = 0, natural_req = 0;
   GtkWidget *child;
   GtkBorder sborder = { 0 };
 
-  child = gtk_bin_get_child (bin);
+  child = gtk_bin_get_child (GTK_BIN (scrolled_window));
 
   if (child)
     gtk_scrollable_get_border (GTK_SCROLLABLE (child), &sborder);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]