Commit 4478fcca authored by Jonathan Blandford's avatar Jonathan Blandford Committed by Jonathan Blandford

removed set_sort_column, as it was moved to the GtkTreeSortable interface.

Tue Apr  3 15:04:45 2001  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreemodelsort.h:  removed set_sort_column, as it was
	moved to the GtkTreeSortable interface.

	* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
	Make more efficient (fixes #50262).
parent af5c897e
Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.h: removed set_sort_column, as it was
moved to the GtkTreeSortable interface.
* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
Make more efficient (fixes #50262).
Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
* NEWS: Updated.
......
Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.h: removed set_sort_column, as it was
moved to the GtkTreeSortable interface.
* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
Make more efficient (fixes #50262).
Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
* NEWS: Updated.
......
Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.h: removed set_sort_column, as it was
moved to the GtkTreeSortable interface.
* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
Make more efficient (fixes #50262).
Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
* NEWS: Updated.
......
Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.h: removed set_sort_column, as it was
moved to the GtkTreeSortable interface.
* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
Make more efficient (fixes #50262).
Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
* NEWS: Updated.
......
Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.h: removed set_sort_column, as it was
moved to the GtkTreeSortable interface.
* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
Make more efficient (fixes #50262).
Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
* NEWS: Updated.
......
Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.h: removed set_sort_column, as it was
moved to the GtkTreeSortable interface.
* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
Make more efficient (fixes #50262).
Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
* NEWS: Updated.
......
Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.h: removed set_sort_column, as it was
moved to the GtkTreeSortable interface.
* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
Make more efficient (fixes #50262).
Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
* NEWS: Updated.
......
......@@ -74,10 +74,6 @@ GtkTreePath *gtk_tree_model_sort_convert_path (GtkTreeModelSort *tree_model_
GtkTreePath *child_path);
/* not implemented */
void gtk_tree_model_sort_set_sort_column (GtkTreeModelSort *tree_model_sort,
gint sort_col);
void gtk_tree_model_sort_set_compare (GtkTreeModelSort *tree_model_sort,
GValueCompareFunc func);
void gtk_tree_model_sort_convert_iter (GtkTreeModelSort *tree_model_sort,
GtkTreeIter *sort_iter,
GtkTreeIter *child_iter);
......
......@@ -368,6 +368,13 @@ gtk_tree_selection_selected_foreach (GtkTreeSelection *selection,
selection->tree_view->priv->tree->root == NULL)
return;
if (selection->type == GTK_TREE_SELECTION_SINGLE)
{
if (gtk_tree_selection_get_selected (selection, NULL, &iter))
(* func) (selection->tree_view->priv->model, &iter, data);
return;
}
tree = selection->tree_view->priv->tree;
node = selection->tree_view->priv->tree->root;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment