[gtk+] Avoid compiler warnings



commit 9f58645eca097ee10bc4db95b0f0aed68e0346b0
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jul 10 00:04:25 2011 -0400

    Avoid compiler warnings
    
    The obj variable in gtk_notebook_accessible_notify_gtk was shadowing
    the parameter of the same name.

 gtk/a11y/gtknotebookaccessible.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gtk/a11y/gtknotebookaccessible.c b/gtk/a11y/gtknotebookaccessible.c
index cf88eb6..7fb31e8 100644
--- a/gtk/a11y/gtknotebookaccessible.c
+++ b/gtk/a11y/gtknotebookaccessible.c
@@ -245,22 +245,22 @@ gtk_notebook_accessible_notify_gtk (GObject    *obj,
 
       if (page_num != old_page_num)
         {
-          AtkObject *obj;
+          AtkObject *child;
 
           if (old_page_num != -1)
             {
-              obj = gtk_notebook_accessible_ref_child (atk_obj, old_page_num);
-              if (obj)
+              child = gtk_notebook_accessible_ref_child (atk_obj, old_page_num);
+              if (child)
                 {
-                  atk_object_notify_state_change (obj, ATK_STATE_SELECTED, FALSE);
-                  g_object_unref (obj);
+                  atk_object_notify_state_change (child, ATK_STATE_SELECTED, FALSE);
+                  g_object_unref (child);
                 }
             }
-          obj = gtk_notebook_accessible_ref_child (atk_obj, page_num);
-          if (obj)
+          child = gtk_notebook_accessible_ref_child (atk_obj, page_num);
+          if (child)
             {
-              atk_object_notify_state_change (obj, ATK_STATE_SELECTED, TRUE);
-              g_object_unref (obj);
+              atk_object_notify_state_change (child, ATK_STATE_SELECTED, TRUE);
+              g_object_unref (child);
               /*
                * The page which is being displayed has changed but there is
                * no need to tell the focus tracker as the focus page will also



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