diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2016-12-15 17:32:27 -0200 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2016-12-15 17:32:27 -0200 |
commit | 30cb8a502074fbcd2dce99eade9c7192abd2c59c (patch) | |
tree | e27ab3c04ce71d56ee647d07e76388625fc33f7b | |
parent | f013d7442ea2b2068013c90b7cf0a7a563b8ac22 (diff) | |
download | gnome-calendar-wip/pandusonu/week-view.tar.gz |
week-header: improve rendering of selectionwip/pandusonu/week-view
-rw-r--r-- | src/views/gcal-week-header.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/views/gcal-week-header.c b/src/views/gcal-week-header.c index 62a8b5c7..75c6956e 100644 --- a/src/views/gcal-week-header.c +++ b/src/views/gcal-week-header.c @@ -1210,11 +1210,19 @@ gcal_week_header_draw (GtkWidget *widget, selection_width = (end - start + 1) * cell_width; selection_x = ltr ? (start * cell_width) : (alloc.width - (start * cell_width + selection_width)); - gtk_render_background (context, cr, - ALIGNED (start_x + selection_x), - start_y, - ALIGNED (selection_width), - alloc.height - start_y); + gtk_render_background (context, + cr, + ALIGNED (start_x + selection_x) + 0.33, + start_y - 6, + ALIGNED (selection_width + 1), + alloc.height - start_y + 6); + + gtk_render_frame (context, + cr, + ALIGNED (start_x + selection_x) + 0.33, + start_y - 6, + ALIGNED (selection_width + 1), + alloc.height - start_y + 6); gtk_style_context_restore (context); } |