Commit 1ba7f437 authored by Tim Janik's avatar Tim Janik

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
parent 2ff11107
......@@ -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
......
......@@ -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.
......
......@@ -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,
......
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