notebook: render a frame and background in the header

And use the "header" style class to do that.
This allows themes to set e.g. the background of the tab header
differently.

Themes will need slight adjustment to make things appear
as before.

https://bugzilla.gnome.org/show_bug.cgi?id=643914
This commit is contained in:
Cosimo Cecchi 2011-03-05 03:03:45 -05:00 committed by Matthias Clasen
parent a2ed88b3ee
commit 71ad9a8fdd

View File

@ -5163,6 +5163,14 @@ gtk_notebook_paint (GtkWidget *widget,
else
page = priv->cur_page;
gtk_style_context_save (context);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_HEADER);
gtk_render_background (context, cr,
x, y, width, page->allocation.height);
gtk_render_frame (context, cr,
x, y, width, page->allocation.height);
gtk_style_context_restore (context);
switch (tab_pos)
{
case GTK_POS_TOP: