summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>2008-06-20 11:01:18 +0000
committerTim Janik <timj@src.gnome.org>2008-06-20 11:01:18 +0000
commit1ba7f437bce8a21580a01e884894aa1eb6f71836 (patch)
treeb9f299b750fa8477582f39f8063b50859325c85b
parent2ff111071d1eb2bbaaa021b0003e19fa9bc1f880 (diff)
downloadgtk+-1ba7f437bce8a21580a01e884894aa1eb6f71836.tar.gz
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
-rw-r--r--gtk/gtk.symbols1
-rw-r--r--gtk/gtktreeselection.c18
-rw-r--r--gtk/gtktreeselection.h2
3 files changed, 21 insertions, 0 deletions
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
@@ -275,6 +275,24 @@ gtk_tree_selection_set_select_function (GtkTreeSelection *selection,
}
/**
+ * 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,