[gtk+] pathbar: fix a copy/paste error from last commit
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] pathbar: fix a copy/paste error from last commit
- Date: Wed, 2 May 2012 15:50:35 +0000 (UTC)
commit aeb5cb2caacc72c92a145533134e757ac53dd6d3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed May 2 11:49:40 2012 -0400
pathbar: fix a copy/paste error from last commit
We need to update the child pointer to the current iterator when going
trough the button list.
gtk/gtkpathbar.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 194bb4a..aec2b0a 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -700,14 +700,16 @@ gtk_path_bar_size_allocate (GtkWidget *widget,
/* Now we go hide all the widgets that don't fit */
while (list)
{
+ child = BUTTON_DATA (list->data)->button;
needs_reorder |= gtk_widget_get_child_visible (child) == TRUE;
- gtk_widget_set_child_visible (BUTTON_DATA (list->data)->button, FALSE);
+ gtk_widget_set_child_visible (child, FALSE);
list = list->prev;
}
for (list = first_button->next; list; list = list->next)
{
+ child = BUTTON_DATA (list->data)->button;
needs_reorder |= gtk_widget_get_child_visible (child) == TRUE;
- gtk_widget_set_child_visible (BUTTON_DATA (list->data)->button, FALSE);
+ gtk_widget_set_child_visible (child, FALSE);
}
if (need_sliders || path_bar->fake_root)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]