summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-18 22:57:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-18 22:57:53 (GMT)
commit86a892e1bf5d3483929da3ea72bfcbfd43f6c6bc (patch)
treeb21cf3c4ab4780340984ae8f495884696efb17e3 /src/gtkext
parent0802224190a4dc5fc772052f6c39fc7f9f134820 (diff)
Painted an extra translucent background on blocks.
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkbufferdisplay.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gtkext/gtkbufferdisplay.c b/src/gtkext/gtkbufferdisplay.c
index 01df570..b9784de 100644
--- a/src/gtkext/gtkbufferdisplay.c
+++ b/src/gtkext/gtkbufferdisplay.c
@@ -465,6 +465,18 @@ static gboolean gtk_buffer_display_draw(GtkWidget *widget, cairo_t *cr)
gtk_style_context_restore(context);
+ if (parent->show_border)
+ {
+ gtk_style_context_save(context);
+
+ gtk_style_context_add_class(context, "graph-block");
+
+ gtk_render_background(context, cr, left_margin, area.y, area.width, area.height);
+
+ gtk_style_context_restore(context);
+
+ }
+
/* Ligne de séparation */
gtk_style_context_save(context);