at Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com>

* gtk/gtktreemodel.h: add () to function macros as per owen's
	request.

	* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
	(gtk_font_selection_show_available_sizes),
	(gtk_font_selection_set_font_name):
	* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
	(gtk_tree_model_foreach):
	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
	(gtk_tree_model_sort_build_level):
	* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
	* gtk/gtktreeview.c: (validate_visible_area),
	(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
	(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
	(gtk_tree_view_search_init):
	* tests/testtreeview.c: (run_automated_tests): change iter_root
	to iter_first
This commit is contained in:
Jonathan Blandford 2002-02-24 04:18:44 +00:00
parent 5d973ef32e
commit a265926e2f
14 changed files with 160 additions and 20 deletions

View File

@ -1,3 +1,23 @@
Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.h: add () to function macros as per owen's
request.
* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
(gtk_font_selection_show_available_sizes),
(gtk_font_selection_set_font_name):
* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
(gtk_tree_model_foreach):
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
(gtk_tree_model_sort_build_level):
* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
* gtk/gtktreeview.c: (validate_visible_area),
(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
(gtk_tree_view_search_init):
* tests/testtreeview.c: (run_automated_tests): change iter_root
to iter_first
Sat Feb 23 22:10:52 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_path_new_first): change new_root to

View File

@ -1,3 +1,23 @@
Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.h: add () to function macros as per owen's
request.
* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
(gtk_font_selection_show_available_sizes),
(gtk_font_selection_set_font_name):
* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
(gtk_tree_model_foreach):
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
(gtk_tree_model_sort_build_level):
* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
* gtk/gtktreeview.c: (validate_visible_area),
(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
(gtk_tree_view_search_init):
* tests/testtreeview.c: (run_automated_tests): change iter_root
to iter_first
Sat Feb 23 22:10:52 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_path_new_first): change new_root to

View File

@ -1,3 +1,23 @@
Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.h: add () to function macros as per owen's
request.
* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
(gtk_font_selection_show_available_sizes),
(gtk_font_selection_set_font_name):
* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
(gtk_tree_model_foreach):
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
(gtk_tree_model_sort_build_level):
* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
* gtk/gtktreeview.c: (validate_visible_area),
(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
(gtk_tree_view_search_init):
* tests/testtreeview.c: (run_automated_tests): change iter_root
to iter_first
Sat Feb 23 22:10:52 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_path_new_first): change new_root to

View File

@ -1,3 +1,23 @@
Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.h: add () to function macros as per owen's
request.
* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
(gtk_font_selection_show_available_sizes),
(gtk_font_selection_set_font_name):
* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
(gtk_tree_model_foreach):
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
(gtk_tree_model_sort_build_level):
* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
* gtk/gtktreeview.c: (validate_visible_area),
(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
(gtk_tree_view_search_init):
* tests/testtreeview.c: (run_automated_tests): change iter_root
to iter_first
Sat Feb 23 22:10:52 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_path_new_first): change new_root to

View File

@ -1,3 +1,23 @@
Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.h: add () to function macros as per owen's
request.
* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
(gtk_font_selection_show_available_sizes),
(gtk_font_selection_set_font_name):
* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
(gtk_tree_model_foreach):
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
(gtk_tree_model_sort_build_level):
* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
* gtk/gtktreeview.c: (validate_visible_area),
(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
(gtk_tree_view_search_init):
* tests/testtreeview.c: (run_automated_tests): change iter_root
to iter_first
Sat Feb 23 22:10:52 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_path_new_first): change new_root to

View File

@ -1,3 +1,23 @@
Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.h: add () to function macros as per owen's
request.
* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
(gtk_font_selection_show_available_sizes),
(gtk_font_selection_set_font_name):
* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
(gtk_tree_model_foreach):
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
(gtk_tree_model_sort_build_level):
* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
* gtk/gtktreeview.c: (validate_visible_area),
(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
(gtk_tree_view_search_init):
* tests/testtreeview.c: (run_automated_tests): change iter_root
to iter_first
Sat Feb 23 22:10:52 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_path_new_first): change new_root to

View File

@ -1,3 +1,23 @@
Sat Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.h: add () to function macros as per owen's
request.
* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
(gtk_font_selection_show_available_sizes),
(gtk_font_selection_set_font_name):
* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
(gtk_tree_model_foreach):
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
(gtk_tree_model_sort_build_level):
* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
* gtk/gtktreeview.c: (validate_visible_area),
(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
(gtk_tree_view_search_init):
* tests/testtreeview.c: (run_automated_tests): change iter_root
to iter_first
Sat Feb 23 22:10:52 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_path_new_first): change new_root to

View File

@ -782,7 +782,7 @@ gtk_font_selection_select_best_style (GtkFontSelection *fontsel,
model = gtk_tree_view_get_model (GTK_TREE_VIEW (fontsel->face_list));
if (gtk_tree_model_get_iter_root (model, &iter))
if (gtk_tree_model_get_iter_first (model, &iter))
{
set_cursor_to_iter (GTK_TREE_VIEW (fontsel->face_list), &iter);
scroll_to_selection (GTK_TREE_VIEW (fontsel->face_list));
@ -850,7 +850,7 @@ gtk_font_selection_show_available_sizes (GtkFontSelection *fontsel,
GtkTreeIter iter;
gboolean found = FALSE;
gtk_tree_model_get_iter_root (GTK_TREE_MODEL (model), &iter);
gtk_tree_model_get_iter_first (GTK_TREE_MODEL (model), &iter);
for (i = 0; i < G_N_ELEMENTS (font_sizes) && !found; i++)
{
if (font_sizes[i] * PANGO_SCALE == fontsel->size)
@ -1057,7 +1057,7 @@ gtk_font_selection_set_font_name (GtkFontSelection *fontsel,
/* Check to make sure that this is in the list of allowed fonts */
model = gtk_tree_view_get_model (GTK_TREE_VIEW (fontsel->family_list));
for (valid = gtk_tree_model_get_iter_root (model, &iter);
for (valid = gtk_tree_model_get_iter_first (model, &iter);
valid;
valid = gtk_tree_model_iter_next (model, &iter))
{
@ -1083,7 +1083,7 @@ gtk_font_selection_set_font_name (GtkFontSelection *fontsel,
gtk_font_selection_show_available_styles (fontsel);
model = gtk_tree_view_get_model (GTK_TREE_VIEW (fontsel->face_list));
for (valid = gtk_tree_model_get_iter_root (model, &iter);
for (valid = gtk_tree_model_get_iter_first (model, &iter);
valid;
valid = gtk_tree_model_iter_next (model, &iter))
{

View File

@ -705,7 +705,7 @@ gtk_tree_model_get_iter_first (GtkTreeModel *tree_model,
g_return_val_if_fail (GTK_IS_TREE_MODEL (tree_model), FALSE);
g_return_val_if_fail (iter != NULL, FALSE);
path = gtk_tree_path_new_root ();
path = gtk_tree_path_new_first ();
retval = gtk_tree_model_get_iter (tree_model, iter, path);
gtk_tree_path_free (path);
@ -1189,7 +1189,7 @@ gtk_tree_model_foreach (GtkTreeModel *model,
g_return_if_fail (GTK_IS_TREE_MODEL (model));
g_return_if_fail (func != NULL);
path = gtk_tree_path_new_root ();
path = gtk_tree_path_new_first ();
if (gtk_tree_model_get_iter (model, &iter, path) == FALSE)
{
gtk_tree_path_free (path);

View File

@ -114,7 +114,7 @@ struct _GtkTreeModelIface
GtkTreePath *gtk_tree_path_new (void);
GtkTreePath *gtk_tree_path_new_from_string (const gchar *path);
gchar *gtk_tree_path_to_string (GtkTreePath *path);
#define gtk_tree_path_new_root gtk_tree_path_new_first
#define gtk_tree_path_new_root() gtk_tree_path_new_first()
GtkTreePath *gtk_tree_path_new_first (void);
void gtk_tree_path_append_index (GtkTreePath *path,
gint index);

View File

@ -1430,7 +1430,7 @@ gtk_tree_model_sort_sort_level (GtkTreeModelSort *tree_model_sort,
}
else
{
data.parent_path = gtk_tree_path_new_root ();
data.parent_path = gtk_tree_path_new_first ();
}
data.parent_path_depth = gtk_tree_path_get_depth (data.parent_path);
data.parent_path_indices = gtk_tree_path_get_indices (data.parent_path);
@ -2017,7 +2017,7 @@ gtk_tree_model_sort_build_level (GtkTreeModelSort *tree_model_sort,
if (parent_level == NULL)
{
if (gtk_tree_model_get_iter_root (tree_model_sort->child_model, &iter) == FALSE)
if (gtk_tree_model_get_iter_first (tree_model_sort->child_model, &iter) == FALSE)
return;
length = gtk_tree_model_iter_n_children (tree_model_sort->child_model, NULL);
}

View File

@ -430,7 +430,7 @@ gtk_tree_selection_selected_foreach (GtkTreeSelection *selection,
node = node->left;
/* find the node internally */
path = gtk_tree_path_new_root ();
path = gtk_tree_path_new_first ();
gtk_tree_model_get_iter (selection->tree_view->priv->model,
&iter, path);

View File

@ -3724,7 +3724,7 @@ validate_visible_area (GtkTreeView *tree_view)
if (node == NULL)
{
/* In this case, nothing has been validated */
path = gtk_tree_path_new_root ();
path = gtk_tree_path_new_first ();
_gtk_tree_view_find_node (tree_view, path, &tree, &node);
}
else
@ -6742,7 +6742,7 @@ gtk_tree_view_focus_to_cursor (GtkTreeView *tree_view)
if (cursor_path == NULL)
{
cursor_path = gtk_tree_path_new_root ();
cursor_path = gtk_tree_path_new_first ();
gtk_tree_row_reference_free (tree_view->priv->cursor);
tree_view->priv->cursor = NULL;
@ -7442,7 +7442,7 @@ gtk_tree_view_set_model (GtkTreeView *tree_view,
G_CALLBACK (gtk_tree_view_rows_reordered),
tree_view);
path = gtk_tree_path_new_root ();
path = gtk_tree_path_new_first ();
if (gtk_tree_model_get_iter (tree_view->priv->model, &iter, path))
{
tree_view->priv->tree = _gtk_rbtree_new ();
@ -8812,7 +8812,7 @@ gtk_tree_view_map_expanded_rows (GtkTreeView *tree_view,
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
g_return_if_fail (func != NULL);
path = gtk_tree_path_new_root ();
path = gtk_tree_path_new_first ();
gtk_tree_view_map_expanded_rows_helper (tree_view,
tree_view->priv->tree,
@ -10111,7 +10111,7 @@ gtk_tree_view_search_move (GtkWidget *window,
/* search */
gtk_tree_selection_unselect_all (selection);
gtk_tree_model_get_iter_root (model, &iter);
gtk_tree_model_get_iter_first (model, &iter);
ret = gtk_tree_view_search_iter (model, selection, &iter, text,
&count, up?((*selected_iter) - 1):((*selected_iter + 1)));
@ -10125,7 +10125,7 @@ gtk_tree_view_search_move (GtkWidget *window,
{
/* return to old iter */
count = 0;
gtk_tree_model_get_iter_root (model, &iter);
gtk_tree_model_get_iter_first (model, &iter);
gtk_tree_view_search_iter (model, selection,
&iter, text,
&count, *selected_iter);
@ -10313,7 +10313,7 @@ gtk_tree_view_search_init (GtkWidget *entry,
if (len < 1)
return;
gtk_tree_model_get_iter_root (model, &iter);
gtk_tree_model_get_iter_first (model, &iter);
ret = gtk_tree_view_search_iter (model, selection,
&iter, text,

View File

@ -1290,7 +1290,7 @@ run_automated_tests (void)
++i;
}
while (gtk_tree_model_get_iter_root (model, &iter))
while (gtk_tree_model_get_iter_first (model, &iter))
gtk_list_store_remove (store, &iter);
gtk_list_store_append (store, &iter);
@ -1322,7 +1322,7 @@ run_automated_tests (void)
}
/* remove everything again */
while (gtk_tree_model_get_iter_root (model, &iter))
while (gtk_tree_model_get_iter_first (model, &iter))
gtk_list_store_remove (store, &iter);
@ -1337,7 +1337,7 @@ run_automated_tests (void)
}
/* remove everything again */
while (gtk_tree_model_get_iter_root (model, &iter))
while (gtk_tree_model_get_iter_first (model, &iter))
gtk_list_store_remove (store, &iter);
g_object_unref (G_OBJECT (store));