]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtktreemodel.c
textview: Use GtkSelectionWindow for touch text selection
[~andy/gtk] / gtk / gtktreemodel.c
index 4bbd803b620753d26c976602b99054eece9d361a..31d8843509121af396e3b33d9e2efe8dfa6efbce 100644 (file)
  * /* Fill the list store with data */
  * populate_model (list_store);
  *
- * /* Get the first iter in the list */
- * valid = gtk_tree_model_get_iter_first (list_store, &iter);
- *
- * while (valid)
+ * /* Get the first iter in the list, check it is valid and walk
+ *  * through the list, reading each row. */
+ * for (valid = gtk_tree_model_get_iter_first (list_store, &iter);
+ *      valid;
+ *      valid = gtk_tree_model_iter_next (list_store, &iter))
  *  {
- *    /* Walk through the list, reading each row */
  *    gchar *str_data;
  *    gint   int_data;
  *
  *    g_free (str_data);
  *
  *    row_count++;
- *    valid = gtk_tree_model_iter_next (list_store, &iter);
  *  }
  * </programlisting>
  * </example>
@@ -2208,8 +2207,8 @@ gtk_tree_row_reference_unref_path (GtkTreePath  *path,
  * Creates a row reference based on @path.
  *
  * This reference will keep pointing to the node pointed to
- * by @path, so long as it exists. It listens to all signals
- * emitted by @model, and updates its path appropriately. If
+ * by @path, so long as it exists. Any changes that occur on @model are
+ * propagated, and the path is updated appropriately. If
  * @path isn't a valid path in @model, then %NULL is returned.
  *
  * Return value: a newly allocated #GtkTreeRowReference, or %NULL