[gtk+/gtk-2-18] Do not update paned position if it's already at the given value



commit 7ec1a0ac716e26596677bd3178d0cbd54a8fc98e
Author: Christian Dywan <christian twotoasts de>
Date:   Fri Jan 29 16:43:15 2010 +0100

    Do not update paned position if it's already at the given value
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=561816
    (cherry picked from commit a23f581c5d6f9256303df5cb639ebf6c935a886b)

 gtk/gtkpaned.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 64b0429..0e4a77f 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1495,6 +1495,9 @@ gtk_paned_set_position (GtkPaned *paned,
   
   g_return_if_fail (GTK_IS_PANED (paned));
 
+  if (paned->child1_size == position)
+    return;
+
   object = G_OBJECT (paned);
   
   if (position >= 0)



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