scrolledwindow: Fix code sample compilation

This commit is contained in:
Timm Bäder 2018-01-03 13:51:03 +01:00
parent 7f300c9da7
commit 4a999cbd1f

View File

@ -68,8 +68,13 @@
*
* If gtk_container_add() has added a #GtkViewport for you, you can remove
* both your added child widget from the #GtkViewport, and the #GtkViewport
* from the GtkScrolledWindow, with either of these calls:
* from the GtkScrolledWindow, like this:
* |[<!-- language="C" -->
* GtkWidget *scrolled_window = gtk_scrolled_window_new (NULL, NULL);
* GtkWidget *child_widget = gtk_button_new ();
*
* // GtkButton is not a GtkScrollable, so GtkScrolledWindow will automatically
* // add a GtkViewport.
* gtk_container_remove (GTK_CONTAINER (scrolled_window),
* child_widget);
* // or