summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-keep-last-vertical-box.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-05-02 01:09:20 +0200
committerraveit65 <[email protected]>2022-07-20 00:04:14 +0200
commitfdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f (patch)
tree1c8c8a9001e359113708688dd9c98cdee15ad85a /libcaja-private/caja-keep-last-vertical-box.c
parent64b7d2640fc91c28db3a16239f8fe5f6243bec26 (diff)
downloadcaja-fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f.tar.bz2
caja-fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f.tar.xz
libcaja-private: reduce the scope of some variables
Diffstat (limited to 'libcaja-private/caja-keep-last-vertical-box.c')
-rw-r--r--libcaja-private/caja-keep-last-vertical-box.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcaja-private/caja-keep-last-vertical-box.c b/libcaja-private/caja-keep-last-vertical-box.c
index b158c81a..65b6541d 100644
--- a/libcaja-private/caja-keep-last-vertical-box.c
+++ b/libcaja-private/caja-keep-last-vertical-box.c
@@ -89,7 +89,6 @@ static void
caja_keep_last_vertical_box_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
- GtkWidget *last_child, *child;
GList *children, *l;
GtkAllocation last_child_allocation, child_allocation, tiny_allocation;
@@ -103,6 +102,8 @@ caja_keep_last_vertical_box_size_allocate (GtkWidget *widget,
if (l != NULL)
{
+ GtkWidget *last_child;
+
last_child = l->data;
l = l->prev;
@@ -114,6 +115,7 @@ caja_keep_last_vertical_box_size_allocate (GtkWidget *widget,
if (last_child_allocation.y + last_child_allocation.height >
allocation->y + allocation->height)
{
+ GtkWidget *child = NULL;
while (l != NULL)
{