summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-05-19 15:50:36 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-05-19 15:50:36 +0000
commit09bdea115652006cd46b3a0bab338f9e553a8792 (patch)
treeab6e6aab26257bc5c04808fcac54864113948bdb
parented03a29ba3ce6d72213b69a47419f01af3ffceb0 (diff)
downloadgdk-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--ChangeLog6
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--gtk/gtknotebook.c4
3 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index dcf12aa3b..b9e6bb8fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,