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



commit 6ed7a1a644dcd4be517a82c767c392ad47eb8c70
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 7e3a7a0..41c578a 100644
--- a/libwnck/test-pager.c
+++ b/libwnck/test-pager.c
@@ -24,7 +24,7 @@ static void
 create_pager_window (GtkOrientation       orientation,
                      gboolean             show_all,
                      WnckPagerDisplayMode mode,
-                     int                  n_rows,
+                     int                  rows,
                      gboolean             wrap_on_scroll)
 {
   GtkWidget *win;
@@ -52,7 +52,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);
   wnck_pager_set_wrap_on_scroll (WNCK_PAGER (pager), wrap_on_scroll);
 


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