drawingarea: Remove useless line from code example

backgrounds are drawn automatically now.
This commit is contained in:
Timm Bäder 2017-06-28 11:17:03 +02:00 committed by Matthias Clasen
parent 3dc6d240b3
commit 4fb2fc7d89

View File

@ -80,8 +80,7 @@ static GParamSpec *props[LAST_PROP] = { NULL, };
*
* Note that GDK automatically clears the exposed area before causing a
* redraw, and that drawing is implicitly clipped to the exposed
* area. If you want to have a theme-provided background, you need
* to call gtk_render_background() in your ::draw method.
* area.
*
* ## Simple GtkDrawingArea usage
*
@ -96,8 +95,6 @@ static GParamSpec *props[LAST_PROP] = { NULL, };
*
* context = gtk_widget_get_style_context (GTK_WIDGET (area));
*
* gtk_render_background (context, cr, 0, 0, width, height);
*
* cairo_arc (cr,
* width / 2.0, height / 2.0,
* MIN (width, height) / 2.0,