Allow to reset the property to its default value -1.

2005-01-14  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
	reset the property to its default value -1.
	(gtk_tree_view_get_search_column): Return the default value in
	the g_return_val_if_fail() check.  (#163864, Richard Hult)
This commit is contained in:
Matthias Clasen 2005-01-15 03:33:07 +00:00 committed by Matthias Clasen
parent 45682c32ea
commit 2ce22483ed
4 changed files with 17 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2005-01-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
reset the property to its default value -1.
(gtk_tree_view_get_search_column): Return the default value in
the g_return_val_if_fail() check. (#163864, Richard Hult)
* gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
Add a translator hint. (#163889)

View File

@ -1,5 +1,10 @@
2005-01-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
reset the property to its default value -1.
(gtk_tree_view_get_search_column): Return the default value in
the g_return_val_if_fail() check. (#163864, Richard Hult)
* gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
Add a translator hint. (#163889)

View File

@ -1,5 +1,10 @@
2005-01-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Allow to
reset the property to its default value -1.
(gtk_tree_view_get_search_column): Return the default value in
the g_return_val_if_fail() check. (#163864, Richard Hult)
* gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_set_value):
Add a translator hint. (#163889)

View File

@ -12179,7 +12179,7 @@ gtk_tree_view_get_enable_search (GtkTreeView *tree_view)
gint
gtk_tree_view_get_search_column (GtkTreeView *tree_view)
{
g_return_val_if_fail (GTK_IS_TREE_VIEW (tree_view), 0);
g_return_val_if_fail (GTK_IS_TREE_VIEW (tree_view), -1);
return (tree_view->priv->search_column);
}
@ -12198,7 +12198,7 @@ gtk_tree_view_set_search_column (GtkTreeView *tree_view,
gint column)
{
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
g_return_if_fail (column >= 0);
g_return_if_fail (column >= -1);
if (tree_view->priv->search_column == column)
return;