summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-04-24 22:20:09 +0200
committerCarlos Garnacho <carlosg@gnome.org>2020-04-24 22:20:09 +0200
commitccfffb2578fb0747dd677184f2341bd3791919bf (patch)
tree87f80751af694df60ba80db450dbfad547d44c8e /demos
parent8871327b0810b0481439916e79a16d4925c13bac (diff)
downloadgtk+-ccfffb2578fb0747dd677184f2341bd3791919bf.tar.gz
demos: Initialize brush size in "paint" demo
Otherwise lines end up with 0 thickness.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/paint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/gtk-demo/paint.c b/demos/gtk-demo/paint.c
index 6312575a5f..cf5adc4743 100644
--- a/demos/gtk-demo/paint.c
+++ b/demos/gtk-demo/paint.c
@@ -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 *