From 1ba7f437bce8a21580a01e884894aa1eb6f71836 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Fri, 20 Jun 2008 11:01:18 +0000 Subject: 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 --- gtk/gtk.symbols | 1 + gtk/gtktreeselection.c | 18 ++++++++++++++++++ gtk/gtktreeselection.h | 2 ++ 3 files changed, 21 insertions(+) diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index d3cb97d131..0bb63ce1c0 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -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 diff --git a/gtk/gtktreeselection.c b/gtk/gtktreeselection.c index 130c14d658..e52ef90959 100644 --- a/gtk/gtktreeselection.c +++ b/gtk/gtktreeselection.c @@ -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. diff --git a/gtk/gtktreeselection.h b/gtk/gtktreeselection.h index 6036dfc9d2..b8c864d51f 100644 --- a/gtk/gtktreeselection.h +++ b/gtk/gtktreeselection.h @@ -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, -- cgit v1.2.1