Add gtk_tree_selection_get_select_function().

* gtk/gtktreeselection.[ch] (gtk_tree_selection_get_select_function): new
function.
* gtk/gtk.symbols: add new function.

svn path=/trunk/; revision=20527
This commit is contained in:
Tim Janik 2008-06-20 11:01:18 +00:00
parent 2ff111071d
commit 1ba7f437bc
3 changed files with 21 additions and 0 deletions

View File

@ -4255,6 +4255,7 @@ gtk_tree_model_filter_set_visible_func
#if IN_FILE(__GTK_TREE_SELECTION_C__)
gtk_tree_selection_count_selected_rows
gtk_tree_selection_get_mode
gtk_tree_selection_get_select_function
gtk_tree_selection_get_selected
gtk_tree_selection_get_selected_rows
gtk_tree_selection_get_tree_view

View File

@ -274,6 +274,24 @@ gtk_tree_selection_set_select_function (GtkTreeSelection *selection,
selection->destroy = destroy;
}
/**
* gtk_tree_selection_get_select_function:
* @selection: A #GtkTreeSelection.
*
* Returns the current selection function.
*
* Return value: The function.
*
* Since: GSEAL-branch
**/
GtkTreeSelectionFunc
gtk_tree_selection_get_select_function (GtkTreeSelection *selection)
{
g_return_val_if_fail (GTK_IS_TREE_SELECTION (selection), NULL);
return selection->user_func;
}
/**
* gtk_tree_selection_get_user_data:
* @selection: A #GtkTreeSelection.

View File

@ -87,6 +87,8 @@ void gtk_tree_selection_set_select_function (GtkTreeSelection
gpointer gtk_tree_selection_get_user_data (GtkTreeSelection *selection);
GtkTreeView* gtk_tree_selection_get_tree_view (GtkTreeSelection *selection);
GtkTreeSelectionFunc gtk_tree_selection_get_select_function (GtkTreeSelection *selection);
/* Only meaningful if GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE is set */
/* Use selected_foreach or get_selected_rows for GTK_SELECTION_MULTIPLE */
gboolean gtk_tree_selection_get_selected (GtkTreeSelection *selection,