From fa6e6928f6e3095ea795625d4791b1734896f8c0 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Tue, 18 Sep 2001 22:49:02 +0000 Subject: centralize all the editing code Tue Sep 18 18:46:54 2001 Jonathan Blandford * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all the editing code * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no reason to call it beyond emiting the two signals. * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property to GtkEntry. --- gtk/gtktreesortable.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk/gtktreesortable.c') diff --git a/gtk/gtktreesortable.c b/gtk/gtktreesortable.c index b3bd769e46..efc35e0887 100644 --- a/gtk/gtktreesortable.c +++ b/gtk/gtktreesortable.c @@ -215,12 +215,12 @@ gtk_tree_sortable_has_default_sort_func (GtkTreeSortable *sortable) { GtkTreeSortableIface *iface; - g_return_if_fail (GTK_IS_TREE_SORTABLE (sortable)); + g_return_val_if_fail (GTK_IS_TREE_SORTABLE (sortable), FALSE); iface = GTK_TREE_SORTABLE_GET_IFACE (sortable); - g_return_if_fail (iface != NULL); - g_return_if_fail (iface->has_default_sort_func != NULL); + g_return_val_if_fail (iface != NULL, FALSE); + g_return_val_if_fail (iface->has_default_sort_func != NULL, FALSE); - (* iface->has_default_sort_func) (sortable); + return (* iface->has_default_sort_func) (sortable); } -- cgit v1.2.1