demos: Initialize brush size in "paint" demo

Otherwise lines end up with 0 thickness.
This commit is contained in:
Carlos Garnacho 2020-04-24 22:20:09 +02:00
parent 8871327b08
commit ccfffb2578

View File

@ -339,6 +339,7 @@ drawing_area_init (DrawingArea *area)
gtk_widget_add_controller (GTK_WIDGET (area), GTK_EVENT_CONTROLLER (gesture));
area->draw_color = (GdkRGBA) { 0, 0, 0, 1 };
area->brush_size = 1;
}
static GtkWidget *