summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-01-20 15:54:37 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-01-20 15:54:37 +0000
commit1fd8d3b487603d92794747becb4e6f64d29d630c (patch)
tree12818469bd9a7669194564fd7542473a822888b2
parentd7050c63aec46b0c265b21911bcc44331b3aa92c (diff)
parent3a18a6dddf25d0790e63a6e901a4912440db2ae6 (diff)
downloadgtk+-1fd8d3b487603d92794747becb4e6f64d29d630c.tar.gz
Merge branch 'matthiasc/for-master' into 'master'
docs: Update getting started section Closes #3601 See merge request GNOME/gtk!3099
-rw-r--r--docs/reference/gtk/getting_started.md19
1 files changed, 9 insertions, 10 deletions
diff --git a/docs/reference/gtk/getting_started.md b/docs/reference/gtk/getting_started.md
index c2f3057f0d..3196bef702 100644
--- a/docs/reference/gtk/getting_started.md
+++ b/docs/reference/gtk/getting_started.md
@@ -343,20 +343,19 @@ Many widgets, like buttons, do all their drawing themselves. You just tell
them the label you want to see, and they figure out what font to use, draw
the button outline and focus rectangle, etc. Sometimes, it is necessary to
do some custom drawing. In that case, a GtkDrawingArea might be the right
-widget to use. It offers a canvas on which you can draw by connecting to
-the ::draw signal.
+widget to use. It offers a canvas on which you can draw by setting its
+draw function.
The contents of a widget often need to be partially or fully redrawn,
e.g. when another window is moved and uncovers part of the widget, or
when the window containing it is resized. It is also possible to explicitly
-cause part or all of the widget to be redrawn, by calling
-gtk_widget_queue_draw() or its variants. GTK takes care of most of the
-details by providing a ready-to-use cairo context to the ::draw signal
-handler.
-
-The following example shows a ::draw signal handler. It is a bit more
-complicated than the previous examples, since it also demonstrates
-input event handling by means of event controllers.
+cause a widget to be redrawn, by calling gtk_widget_queue_draw(). GTK takes
+care of most of the details by providing a ready-to-use cairo context to the
+draw function.
+
+The following example shows how to use a draw function with GtkDrawingArea.
+It is a bit more complicated than the previous examples, since it also
+demonstrates input event handling with event controllers.
![Drawing](drawing.png)