diff options
Diffstat (limited to 'gtk/gtktreemodel.c')
-rw-r--r-- | gtk/gtktreemodel.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 3ee9cab003..874de5fe57 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -116,23 +116,22 @@ * ## Acquiring a #GtkTreeIter-struct * * |[<!-- language="C" --> - * /* Three ways of getting the iter pointing to the - * location */ + * // Three ways of getting the iter pointing to the location * GtkTreePath *path; * GtkTreeIter iter; * GtkTreeIter parent_iter; * - * /* get the iterator from a string */ + * // get the iterator from a string * gtk_tree_model_get_iter_from_string (model, * &iter, * "3:2:5"); * - * /* get the iterator from a path */ + * // get the iterator from a path * path = gtk_tree_path_new_from_string ("3:2:5"); * gtk_tree_model_get_iter (model, &iter, path); * gtk_tree_path_free (path); * - * /* walk the tree to find the iterator */ + * // walk the tree to find the iterator * gtk_tree_model_iter_nth_child (model, &iter, * NULL, 3); * parent_iter = iter; @@ -166,17 +165,16 @@ * gboolean valid; * gint row_count = 0; * - * /* make a new list_store */ + * // make a new list_store * list_store = gtk_list_store_new (N_COLUMNS, * G_TYPE_STRING, * G_TYPE_INT); * - * /* Fill the list store with data */ + * // Fill the list store with data * populate_model (list_store); * - * /* Get the first iter in the list, check it is - * valid and walk through the list, reading each row. - * */ + * // Get the first iter in the list, check it is valid and walk + * // through the list, reading each row. * * valid = gtk_tree_model_get_iter_first (list_store, * &iter); @@ -185,15 +183,13 @@ * gchar *str_data; * gint int_data; * - * /* Make sure you terminate calls to - * * gtk_tree_model_get() with a “-1” value - * */ + * // Make sure you terminate calls to gtk_tree_model_get() with a “-1” value * gtk_tree_model_get (list_store, &iter, * STRING_COLUMN, &str_data, * INT_COLUMN, &int_data, * -1); * - * /* Do something with the data */ + * // Do something with the data * g_print ("Row %d: (%s,%d)\n", * row_count, str_data, int_data); * g_free (str_data); |