From 393285778f6fe9f20207a0c81bce5e1d0845d890 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 26 Sep 2004 05:54:59 +0000 Subject: [PATCH] Scroll to make the current folder visible. (#152921) 2004-09-26 Matthias Clasen * gtk/gtkpathbar.c (gtk_path_bar_check_parent_path): Scroll to make the current folder visible. (#152921) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-6 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtkpathbar.c | 4 ++-- 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d32a646c31..d54e8c2b88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-09-26 Matthias Clasen + * gtk/gtkpathbar.c (gtk_path_bar_check_parent_path): Scroll + to make the current folder visible. (#152921) + * gtk/gtkbutton.c: Revert the button state to !button_down, if we're missing the release event due to grab shadowing or insensitivation. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d32a646c31..d54e8c2b88 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2004-09-26 Matthias Clasen + * gtk/gtkpathbar.c (gtk_path_bar_check_parent_path): Scroll + to make the current folder visible. (#152921) + * gtk/gtkbutton.c: Revert the button state to !button_down, if we're missing the release event due to grab shadowing or insensitivation. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d32a646c31..d54e8c2b88 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,8 @@ 2004-09-26 Matthias Clasen + * gtk/gtkpathbar.c (gtk_path_bar_check_parent_path): Scroll + to make the current folder visible. (#152921) + * gtk/gtkbutton.c: Revert the button state to !button_down, if we're missing the release event due to grab shadowing or insensitivation. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d32a646c31..d54e8c2b88 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2004-09-26 Matthias Clasen + * gtk/gtkpathbar.c (gtk_path_bar_check_parent_path): Scroll + to make the current folder visible. (#152921) + * gtk/gtkbutton.c: Revert the button state to !button_down, if we're missing the release event due to grab shadowing or insensitivation. 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;