week-header: improve rendering of selection

This commit is contained in:
Georges Basile Stavracas Neto
2016-12-15 17:32:27 -02:00
parent f013d7442e
commit 30cb8a5020
+13 -5
View File
@@ -1210,11 +1210,19 @@ gcal_week_header_draw (GtkWidget *widget,
selection_width = (end - start + 1) * cell_width; selection_width = (end - start + 1) * cell_width;
selection_x = ltr ? (start * cell_width) : (alloc.width - (start * cell_width + selection_width)); selection_x = ltr ? (start * cell_width) : (alloc.width - (start * cell_width + selection_width));
gtk_render_background (context, cr, gtk_render_background (context,
ALIGNED (start_x + selection_x), cr,
start_y, ALIGNED (start_x + selection_x) + 0.33,
ALIGNED (selection_width), start_y - 6,
alloc.height - start_y); 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); gtk_style_context_restore (context);
} }