summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-09-26 05:54:59 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-09-26 05:54:59 +0000
commit393285778f6fe9f20207a0c81bce5e1d0845d890 (patch)
tree01bed213a5c519c9234e2fbccc06a8bbda879fa2 /gtk/gtkpathbar.c
parent32e685c8d4d3b05b7a1d1cda2c83462515082a99 (diff)
downloadgtk+-393285778f6fe9f20207a0c81bce5e1d0845d890.tar.gz
Scroll to make the current folder visible. (#152921)
2004-09-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c (gtk_path_bar_check_parent_path): Scroll to make the current folder visible. (#152921)
Diffstat (limited to 'gtk/gtkpathbar.c')
-rw-r--r--gtk/gtkpathbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 84e824bb21..f91428aa33 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1165,13 +1165,13 @@ gtk_path_bar_check_parent_path (GtkPathBar *path_bar,
BUTTON_DATA (list->data),
(list == current_path) ? TRUE : FALSE);
}
-#if 1
+
if (!gtk_widget_get_child_visible (BUTTON_DATA (current_path->data)->button))
{
path_bar->first_scrolled_button = current_path;
gtk_widget_queue_resize (GTK_WIDGET (path_bar));
}
-#endif
+
return TRUE;
}
return FALSE;