[gtk/wip/carlosg/input-fixes: 1/7] demos: Initialize brush size in "paint" demo
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/input-fixes: 1/7] demos: Initialize brush size in "paint" demo
- Date: Fri, 24 Apr 2020 21:18:19 +0000 (UTC)
commit ccfffb2578fb0747dd677184f2341bd3791919bf
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Apr 24 22:20:09 2020 +0200
demos: Initialize brush size in "paint" demo
Otherwise lines end up with 0 thickness.
demos/gtk-demo/paint.c | 1 +
1 file changed, 1 insertion(+)
---
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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]