diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-09-18 22:49:02 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-09-18 22:49:02 +0000 |
commit | fa6e6928f6e3095ea795625d4791b1734896f8c0 (patch) | |
tree | 1fc768a78490f150db8778b318bba26301fcbfb7 /gtk/gtktreesortable.c | |
parent | a15d5c36f6e100ff512ca3fc2ff034d3cbd5f572 (diff) | |
download | gtk+-fa6e6928f6e3095ea795625d4791b1734896f8c0.tar.gz |
centralize all the editing code
Tue Sep 18 18:46:54 2001 Jonathan Blandford <jrb@redhat.com>
* 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.
Diffstat (limited to 'gtk/gtktreesortable.c')
-rw-r--r-- | gtk/gtktreesortable.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |