mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Use the background class for the dense-calendar
This commit is contained in:
@@ -918,12 +918,15 @@ gnc_dense_cal_draw_to_buffer(GncDenseCal *dcal)
|
||||
stylectxt = gtk_widget_get_style_context (GTK_WIDGET(dcal->cal_drawing_area));
|
||||
state_flags = gtk_style_context_get_state (stylectxt);
|
||||
|
||||
gtk_style_context_add_class (stylectxt, GTK_STYLE_CLASS_BACKGROUND);
|
||||
gtk_style_context_add_class (stylectxt, GTK_STYLE_CLASS_CALENDAR);
|
||||
|
||||
gtk_render_background (stylectxt, cr, 0, 0,
|
||||
cairo_image_surface_get_width (dcal->surface),
|
||||
cairo_image_surface_get_height (dcal->surface));
|
||||
|
||||
gtk_style_context_remove_class (stylectxt, GTK_STYLE_CLASS_BACKGROUND);
|
||||
|
||||
/* get the colors */
|
||||
{
|
||||
GdkRGBA color;
|
||||
|
||||
Reference in New Issue
Block a user