[gtk+] stackswitcher: Don't do unneeded update



commit 1d422deb0f12aadb01b91d2b55a317c9e265dde6
Author: Benjamin Otte <otte redhat com>
Date:   Tue Feb 18 13:56:26 2014 +0100

    stackswitcher: Don't do unneeded update
    
    The update of the needs-attention state is done via its own property,
    so it doesn't need to be done via visibility changes.
    
    This patch is largely the result of inspecting the code due to a warning
    and not a result of testing. So if issues pop up that bisect back to
    this patch, that's why.

 gtk/gtkstackswitcher.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index 83e2eed..361bd54 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -310,10 +310,6 @@ on_child_changed (GtkWidget        *widget,
       gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
       priv->in_child_changed = FALSE;
     }
-
-  g_hash_table_foreach (priv->buttons,
-                        (GHFunc)update_needs_attention,
-                        priv->stack);
 }
 
 static void


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