diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-10-04 18:01:31 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-10-04 18:14:25 -0400 |
commit | 6f17c408e69253a4f3375596aa8514ba7cb5cbb0 (patch) | |
tree | 22f67edcd78c1feee20b2391f1d91616e2db8080 /gtk/gtknotebook.c | |
parent | 053433010bfb6b4542652453ad1580c5f2e7525b (diff) | |
download | gtk+-6f17c408e69253a4f3375596aa8514ba7cb5cbb0.tar.gz |
notebook: inform the theme to draw borders when requested
When the show-border property is TRUE ask the theme to draw
borders on the notebook header.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 0f113c4cc0..f958d8229b 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -5240,6 +5240,8 @@ gtk_notebook_paint (GtkWidget *widget, } gtk_style_context_add_class (context, GTK_STYLE_CLASS_HEADER); + if (priv->show_border) + gtk_style_context_add_class (context, GTK_STYLE_CLASS_FRAME); gtk_render_background (context, cr, header_x, header_y, header_width, header_height); gtk_render_frame (context, cr, |