]> Pileus Git - ~andy/gtk/commitdiff
Do not update paned position if it's already at the given value
authorChristian Dywan <christian@twotoasts.de>
Fri, 29 Jan 2010 15:43:15 +0000 (16:43 +0100)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 4 Apr 2010 00:55:28 +0000 (20:55 -0400)
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=561816
gtk/gtkpaned.c

index d0f44433c182ecba884e7bc0ba1a6336a484939a..16681822dded81205aebd9bf9b99800410c7bddd 100644 (file)
@@ -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)