[gtk/oh-no-my-docs] Remove outdated docs




commit 9af3bb8dc15255bfbc481504dc67a26a87c8d116
Author: Benjamin Otte <otte benjamin googlemail com>
Date:   Mon Oct 3 21:12:42 2022 +0000

    Remove outdated docs
    
    There are a lot of automatic conversions in the blame log.

 gtk/gtkscrolledwindow.c | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 8620fbdf6c..bf581109a0 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -72,24 +72,7 @@
  * just add any child widget and not worry about the details.
  *
  * If [method@Gtk.ScrolledWindow.set_child] has added a `GtkViewport` for you,
- * you can remove both your added child widget from the `GtkViewport`, and the
- * `GtkViewport` from the `GtkScrolledWindow`, like this:
- *
- * ```c
- * GtkWidget *scrolled_window = gtk_scrolled_window_new ();
- * GtkWidget *child_widget = gtk_button_new ();
- *
- * // GtkButton is not a GtkScrollable, so GtkScrolledWindow will automatically
- * // add a GtkViewport.
- * gtk_box_append (GTK_BOX (scrolled_window), child_widget);
- *
- * // Either of these will result in child_widget being unparented:
- * gtk_box_remove (GTK_BOX (scrolled_window), child_widget);
- * // or
- * gtk_box_remove (GTK_BOX (scrolled_window),
- *                       gtk_bin_get_child (GTK_BIN (scrolled_window)));
- * ```
- *
+ * it will be automatically removed hen you unset the child.
  * Unless [property@Gtk.ScrolledWindow:hscrollbar-policy] and
  * [property@Gtk.ScrolledWindow:vscrollbar-policy] are %GTK_POLICY_NEVER or
  * %GTK_POLICY_EXTERNAL, `GtkScrolledWindow` adds internal `GtkScrollbar` widgets


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]