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)
This commit is contained in:
Matthias Clasen
2004-09-26 05:54:59 +00:00
committed by Matthias Clasen
parent 32e685c8d4
commit 393285778f
5 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2004-09-26 Matthias Clasen <mclasen@redhat.com> 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)
* gtk/gtkbutton.c: Revert the button state to !button_down, * gtk/gtkbutton.c: Revert the button state to !button_down,
if we're missing the release event due to grab shadowing if we're missing the release event due to grab shadowing
or insensitivation. or insensitivation.

View File

@ -1,5 +1,8 @@
2004-09-26 Matthias Clasen <mclasen@redhat.com> 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)
* gtk/gtkbutton.c: Revert the button state to !button_down, * gtk/gtkbutton.c: Revert the button state to !button_down,
if we're missing the release event due to grab shadowing if we're missing the release event due to grab shadowing
or insensitivation. or insensitivation.

View File

@ -1,5 +1,8 @@
2004-09-26 Matthias Clasen <mclasen@redhat.com> 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)
* gtk/gtkbutton.c: Revert the button state to !button_down, * gtk/gtkbutton.c: Revert the button state to !button_down,
if we're missing the release event due to grab shadowing if we're missing the release event due to grab shadowing
or insensitivation. or insensitivation.

View File

@ -1,5 +1,8 @@
2004-09-26 Matthias Clasen <mclasen@redhat.com> 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)
* gtk/gtkbutton.c: Revert the button state to !button_down, * gtk/gtkbutton.c: Revert the button state to !button_down,
if we're missing the release event due to grab shadowing if we're missing the release event due to grab shadowing
or insensitivation. or insensitivation.

View File

@ -1165,13 +1165,13 @@ gtk_path_bar_check_parent_path (GtkPathBar *path_bar,
BUTTON_DATA (list->data), BUTTON_DATA (list->data),
(list == current_path) ? TRUE : FALSE); (list == current_path) ? TRUE : FALSE);
} }
#if 1
if (!gtk_widget_get_child_visible (BUTTON_DATA (current_path->data)->button)) if (!gtk_widget_get_child_visible (BUTTON_DATA (current_path->data)->button))
{ {
path_bar->first_scrolled_button = current_path; path_bar->first_scrolled_button = current_path;
gtk_widget_queue_resize (GTK_WIDGET (path_bar)); gtk_widget_queue_resize (GTK_WIDGET (path_bar));
} }
#endif
return TRUE; return TRUE;
} }
return FALSE; return FALSE;