summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-12 16:09:09 -0500
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-12 18:42:50 -0500
commit37a8ee6e952fb8c837ffbabfe3a5068b08e75b13 (patch)
treed48dc51ab27f65571678687ef1d254f4caa85d32 /gtk/gtknotebook.c
parent74c48203f0a790ae6b6bb33cf7cf6ed2c3a4d3d5 (diff)
downloadgtk+-37a8ee6e952fb8c837ffbabfe3a5068b08e75b13.tar.gz
docs: fully break lines in examples
Try to do a better job of keeping example content from being too wide. It is often rendered as <pre> text so the only time we can wrap it is in the source. It is best to full break lines at all punctuation and to try to keep the width under 70 chars or so.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 6ca07a77ec..2debf9ead5 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -8397,23 +8397,25 @@ gtk_notebook_get_tab_detachable (GtkNotebook *notebook,
* widget that corresponds to the dropped tab.
* |[<!-- language="C" -->
* static void
- * on_drop_zone_drag_data_received (GtkWidget *widget,
- * GdkDragContext *context,
- * gint x,
- * gint y,
- * GtkSelectionData *selection_data,
- * guint info,
- * guint time,
- * gpointer user_data)
+ * on_drag_data_received (GtkWidget *widget,
+ * GdkDragContext *context,
+ * gint x,
+ * gint y,
+ * GtkSelectionData *data,
+ * guint info,
+ * guint time,
+ * gpointer user_data)
* {
* GtkWidget *notebook;
* GtkWidget **child;
+ * GtkContainer *container;
*
* notebook = gtk_drag_get_source_widget (context);
- * child = (void*) gtk_selection_data_get_data (selection_data);
+ * child = (void*) gtk_selection_data_get_data (data);
*
* process_widget (*child);
- * gtk_container_remove (GTK_CONTAINER (notebook), *child);
+ * container = GTK_CONTAINER (notebook);
+ * gtk_container_remove (container, *child);
* }
* ]|
*