[libwnck/wip/muktupavels/modernize] test-pager: avoid shadowing existing variable



commit 22b9dfec6ae119c92249a72996858ff62e6be42d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Nov 12 16:33:46 2016 +0200

    test-pager: avoid shadowing existing variable

 libwnck/test-pager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libwnck/test-pager.c b/libwnck/test-pager.c
index 5977d88..9270c38 100644
--- a/libwnck/test-pager.c
+++ b/libwnck/test-pager.c
@@ -22,7 +22,7 @@ static void
 create_pager_window (GtkOrientation orientation,
                     gboolean       show_all,
                     WnckPagerDisplayMode mode,
-                    int n_rows)
+                    int rows)
 {
   GtkWidget *win;
   GtkWidget *pager;
@@ -49,7 +49,7 @@ create_pager_window (GtkOrientation orientation,
   wnck_pager_set_show_all (WNCK_PAGER (pager), show_all);
   wnck_pager_set_display_mode (WNCK_PAGER (pager), mode);
   wnck_pager_set_orientation (WNCK_PAGER (pager), orientation);
-  wnck_pager_set_n_rows (WNCK_PAGER (pager), n_rows);
+  wnck_pager_set_n_rows (WNCK_PAGER (pager), rows);
   wnck_pager_set_shadow_type (WNCK_PAGER (pager), GTK_SHADOW_IN);
 
   gtk_container_add (GTK_CONTAINER (win), pager);


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