forked from AuroraMiddleware/gtk
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:
parent
a2ed88b3ee
commit
71ad9a8fdd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user