[gtk+] notebook: inform the theme to draw borders when requested
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: inform the theme to draw borders when requested
- Date: Fri, 4 Oct 2013 22:14:53 +0000 (UTC)
commit 6f17c408e69253a4f3375596aa8514ba7cb5cbb0
Author: William Jon McCann <william jon mccann gmail com>
Date: Fri Oct 4 18:01:31 2013 -0400
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.
gtk/gtknotebook.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 0f113c4..f958d82 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]