diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-05-19 15:50:36 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-05-19 15:50:36 +0000 |
commit | 09bdea115652006cd46b3a0bab338f9e553a8792 (patch) | |
tree | ab6e6aab26257bc5c04808fcac54864113948bdb | |
parent | ed03a29ba3ce6d72213b69a47419f01af3ffceb0 (diff) | |
download | gdk-pixbuf-09bdea115652006cd46b3a0bab338f9e553a8792.tar.gz |
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)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 6 | ||||
-rw-r--r-- | gtk/gtknotebook.c | 4 |
3 files changed, 15 insertions, 1 deletions
@@ -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 diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index dcf12aa3b..b9e6bb8fb 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -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 diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 402d73687..412f8339d 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -3342,7 +3342,9 @@ gtk_notebook_pages_allocate (GtkNotebook *notebook) &(notebook->first_tab), &tab_space, STEP_PREV); - if (tab_space <= 0) + page = focus_tab->data; + if (tab_space <= 0 && + !gtk_widget_get_child_visible (page->tab_label)) { notebook->first_tab = gtk_notebook_search_page (notebook, notebook->first_tab, |