[libgd] GdStack: Exit early if switching to the current page



commit 073d180457c0148f1428e0ae1a457ffb60a50aea
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Feb 15 13:44:26 2013 +0100

    GdStack: Exit early if switching to the current page

 libgd/gd-stack.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-stack.c b/libgd/gd-stack.c
index 91769ff..9206cc5 100644
--- a/libgd/gd-stack.c
+++ b/libgd/gd-stack.c
@@ -454,6 +454,9 @@ set_visible_child (GdStack *stack,
        }
     }
 
+  if (child_info == priv->visible_child)
+    return;
+
   surface = NULL;
   if (priv->visible_child)
     {



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