From 2ce22483ed3dbd4947508e4f8a478ee2b7a21360 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 15 Jan 2005 03:33:07 +0000 Subject: [PATCH] Allow to reset the property to its default value -1. 2005-01-14 Matthias Clasen * 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) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtktreeview.c | 4 ++-- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 73341521fa..40c7b3c351 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-01-14 Matthias Clasen + * 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) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 73341521fa..40c7b3c351 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,10 @@ 2005-01-14 Matthias Clasen + * 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) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 73341521fa..40c7b3c351 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,10 @@ 2005-01-14 Matthias Clasen + * 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) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 09115f78e9..836bd6f196 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -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;