+Thu Jan 17 20:13:14 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
+ missing allocation.x/y offsets. (#68962, Jacob
+ Berkman)
+
+ * gtk/gtknotebook.c (gtk_notebook_size_allocate):
+ Queue a redraw on the entire widget if we hide
+ the last page or show the first. (Also #68962)
+
2002-01-17 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
+Thu Jan 17 20:13:14 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
+ missing allocation.x/y offsets. (#68962, Jacob
+ Berkman)
+
+ * gtk/gtknotebook.c (gtk_notebook_size_allocate):
+ Queue a redraw on the entire widget if we hide
+ the last page or show the first. (Also #68962)
+
2002-01-17 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
+Thu Jan 17 20:13:14 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
+ missing allocation.x/y offsets. (#68962, Jacob
+ Berkman)
+
+ * gtk/gtknotebook.c (gtk_notebook_size_allocate):
+ Queue a redraw on the entire widget if we hide
+ the last page or show the first. (Also #68962)
+
2002-01-17 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
+Thu Jan 17 20:13:14 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
+ missing allocation.x/y offsets. (#68962, Jacob
+ Berkman)
+
+ * gtk/gtknotebook.c (gtk_notebook_size_allocate):
+ Queue a redraw on the entire widget if we hide
+ the last page or show the first. (Also #68962)
+
2002-01-17 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
+Thu Jan 17 20:13:14 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
+ missing allocation.x/y offsets. (#68962, Jacob
+ Berkman)
+
+ * gtk/gtknotebook.c (gtk_notebook_size_allocate):
+ Queue a redraw on the entire widget if we hide
+ the last page or show the first. (Also #68962)
+
2002-01-17 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
+Thu Jan 17 20:13:14 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
+ missing allocation.x/y offsets. (#68962, Jacob
+ Berkman)
+
+ * gtk/gtknotebook.c (gtk_notebook_size_allocate):
+ Queue a redraw on the entire widget if we hide
+ the last page or show the first. (Also #68962)
+
2002-01-17 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
+Thu Jan 17 20:13:14 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
+ missing allocation.x/y offsets. (#68962, Jacob
+ Berkman)
+
+ * gtk/gtknotebook.c (gtk_notebook_size_allocate):
+ Queue a redraw on the entire widget if we hide
+ the last page or show the first. (Also #68962)
+
2002-01-17 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
GtkAllocation *allocation)
{
GtkNotebook *notebook = GTK_NOTEBOOK (widget);
+ gint vis_pages = 0;
widget->allocation = *allocation;
if (GTK_WIDGET_REALIZED (widget))
children = children->next;
if (GTK_WIDGET_VISIBLE (page->child))
- gtk_widget_size_allocate (page->child, &child_allocation);
+ {
+ gtk_widget_size_allocate (page->child, &child_allocation);
+ vis_pages++;
+ }
}
gtk_notebook_pages_allocate (notebook);
}
+
+ if ((vis_pages != 0) != notebook->have_visible_child)
+ {
+ notebook->have_visible_child = (vis_pages != 0);
+ if (notebook->show_tabs)
+ gtk_widget_queue_draw (widget);
+ }
}
static gint
break;
}
+ redraw_rect.x += widget->allocation.x;
+ redraw_rect.y += widget->allocation.y;
+
gdk_window_invalidate_rect (widget->window, &redraw_rect, TRUE);
}