Fix a boundary case in scrolling where a tab was not shown. (#168105,

2006-05-19  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtknotebook.c (gtk_notebook_pages_allocate): Fix a
	boundary case in scrolling where a tab was not shown.  (#168105,
	Hiroyuki Ikezoe, patch by Kouhei Sutou)
This commit is contained in:
Matthias Clasen 2006-05-19 16:04:32 +00:00 committed by Matthias Clasen
parent 2d4235c28b
commit b2af13f123
3 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-05-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_pages_allocate): Fix a
boundary case in scrolling where a tab was not shown. (#168105,
Hiroyuki Ikezoe, patch by Kouhei Sutou)
2006-05-19 Damon Chaplin <damon@gnome.org>
* gtk/gtkfontsel.c (gtk_font_selection_init): use

View File

@ -1,3 +1,9 @@
2006-05-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_pages_allocate): Fix a
boundary case in scrolling where a tab was not shown. (#168105,
Hiroyuki Ikezoe, patch by Kouhei Sutou)
2006-05-19 Damon Chaplin <damon@gnome.org>
* gtk/gtkfontsel.c (gtk_font_selection_init): use

View File

@ -4851,7 +4851,9 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook,
&(notebook->first_tab), remaining_space,
STEP_PREV);
if (*remaining_space <= 0)
page = notebook->focus_tab->data;
if (*remaining_space <= 0 &&
!gtk_widget_get_child_visible(page->tab_label))
{
notebook->first_tab =
gtk_notebook_search_page (notebook, notebook->first_tab,