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



commit a23f581c5d6f9256303df5cb639ebf6c935a886b
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

 gtk/gtkpaned.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index d0f4443..1668182 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]