notebook fix from lars.

-timj
This commit is contained in:
Tim Janik
1998-03-15 13:40:15 +00:00
parent f87ee7e51a
commit eac28852ed
8 changed files with 39 additions and 1 deletions

View File

@ -2386,7 +2386,10 @@ gtk_notebook_pages_allocate (GtkNotebook *notebook,
children = NULL;
gtk_notebook_calc_tabs (notebook,notebook->first_tab->prev,
&children, &tab_space, STEP_PREV);
notebook->first_tab = children->next;
if (children)
notebook->first_tab = children->next;
else
notebook->first_tab = notebook->children;
}
}