[gtk+/wip/matthiasc/tab-strip] Fix state updates for tabs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/tab-strip] Fix state updates for tabs
- Date: Tue, 24 May 2016 21:59:55 +0000 (UTC)
commit d6f5af4df9eee1fe13eb2d8f497af14c9f70feca
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 24 17:58:41 2016 -0400
Fix state updates for tabs
This broke when I introduced the scrolling. We need to
iterate over the children of the tabs box to update their
state.
gtk/gtktabstrip.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktabstrip.c b/gtk/gtktabstrip.c
index 25030f9..a5bd9fd 100644
--- a/gtk/gtktabstrip.c
+++ b/gtk/gtktabstrip.c
@@ -471,7 +471,7 @@ gtk_tab_strip_stack_notify_visible_child (GtkTabStrip *self,
visible_child = gtk_stack_get_visible_child (stack);
priv->in_child_changed = TRUE;
- gtk_container_foreach (GTK_CONTAINER (self), update_visible_child, visible_child);
+ gtk_container_foreach (GTK_CONTAINER (priv->tabs), update_visible_child, visible_child);
priv->in_child_changed = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]