notebook: Remove useless optimization
It will become especially useless once we draw with Cairo exclusively.
This commit is contained in:
parent
1c94efc921
commit
a5e487846a
@ -4922,7 +4922,6 @@ gtk_notebook_draw_tab (GtkNotebook *notebook,
|
||||
GdkRectangle *area)
|
||||
{
|
||||
GtkNotebookPrivate *priv;
|
||||
GdkRectangle child_area;
|
||||
GdkRectangle page_area;
|
||||
GtkStateType state_type;
|
||||
GtkPositionType gap_side;
|
||||
@ -4947,8 +4946,6 @@ gtk_notebook_draw_tab (GtkNotebook *notebook,
|
||||
page_area.width = page->allocation.width;
|
||||
page_area.height = page->allocation.height;
|
||||
|
||||
if (gdk_rectangle_intersect (&page_area, area, &child_area))
|
||||
{
|
||||
gap_side = get_tab_gap_pos (notebook);
|
||||
|
||||
if (priv->cur_page == page)
|
||||
@ -4963,7 +4960,6 @@ gtk_notebook_draw_tab (GtkNotebook *notebook,
|
||||
page_area.width, page_area.height,
|
||||
gap_side);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_notebook_draw_arrow (GtkNotebook *notebook,
|
||||
|
Loading…
Reference in New Issue
Block a user