2006-06-14 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktreeview.c (gtk_tree_view_set_search_position+_func):
+ Allow NULL to reset to default. (#344838, John Finlay)
+
* gtk/gtkprintjob.h: Collect booleans into a bitfield
(#344765, Christian Persch)
2006-06-14 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktreeview.c (gtk_tree_view_set_search_position+_func):
+ Allow NULL to reset to default. (#344838, John Finlay)
+
* gtk/gtkprintjob.h: Collect booleans into a bitfield
(#344765, Christian Persch)
/**
* gtk_tree_view_set_search_position_func:
* @tree_view: A #GtkTreeView
- * @func: the function to use to position the search dialog
+ * @func: the function to use to position the search dialog, or %NULL
+ * to use the default search position function
* @data: user data to pass to @func, or %NULL
* @destroy: Destroy notifier for @data, or %NULL
*
GDestroyNotify destroy)
{
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
- g_return_if_fail (func !=NULL);
if (tree_view->priv->search_position_destroy)
(* tree_view->priv->search_position_destroy) (tree_view->priv->search_position_user_data);