Fix NULL/FALSE confusion (#107648, Morten Welinder)

2003-03-06  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextmark.c (gtk_text_mark_get_buffer):
	* gtk/gtkeditable.c (gtk_editable_get_chars):
	* gtk/gtkctree.c (gtk_ctree_find_node_ptr):
	* demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
	(#107648, Morten Welinder)
This commit is contained in:
Matthias Clasen 2003-03-06 19:49:53 +00:00 committed by Matthias Clasen
parent 4f44e655a4
commit ce58806c0d
9 changed files with 45 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2003-03-06 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextmark.c (gtk_text_mark_get_buffer):
* gtk/gtkeditable.c (gtk_editable_get_chars):
* gtk/gtkctree.c (gtk_ctree_find_node_ptr):
* demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
(#107648, Morten Welinder)
2003-03-04 Matthias Clasen <maclas@gmx.de> 2003-03-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new (). * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().

View File

@ -1,3 +1,11 @@
2003-03-06 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextmark.c (gtk_text_mark_get_buffer):
* gtk/gtkeditable.c (gtk_editable_get_chars):
* gtk/gtkctree.c (gtk_ctree_find_node_ptr):
* demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
(#107648, Morten Welinder)
2003-03-04 Matthias Clasen <maclas@gmx.de> 2003-03-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new (). * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().

View File

@ -1,3 +1,11 @@
2003-03-06 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextmark.c (gtk_text_mark_get_buffer):
* gtk/gtkeditable.c (gtk_editable_get_chars):
* gtk/gtkctree.c (gtk_ctree_find_node_ptr):
* demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
(#107648, Morten Welinder)
2003-03-04 Matthias Clasen <maclas@gmx.de> 2003-03-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new (). * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().

View File

@ -1,3 +1,11 @@
2003-03-06 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextmark.c (gtk_text_mark_get_buffer):
* gtk/gtkeditable.c (gtk_editable_get_chars):
* gtk/gtkctree.c (gtk_ctree_find_node_ptr):
* demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
(#107648, Morten Welinder)
2003-03-04 Matthias Clasen <maclas@gmx.de> 2003-03-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new (). * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().

View File

@ -1,3 +1,11 @@
2003-03-06 Matthias Clasen <maclas@gmx.de>
* gtk/gtktextmark.c (gtk_text_mark_get_buffer):
* gtk/gtkeditable.c (gtk_editable_get_chars):
* gtk/gtkctree.c (gtk_ctree_find_node_ptr):
* demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
(#107648, Morten Welinder)
2003-03-04 Matthias Clasen <maclas@gmx.de> 2003-03-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new (). * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().

View File

@ -43,7 +43,7 @@ gchar *
demo_find_file (const char *base, demo_find_file (const char *base,
GError **err) GError **err)
{ {
g_return_val_if_fail (err == NULL || *err == NULL, FALSE); g_return_val_if_fail (err == NULL || *err == NULL, NULL);
if (g_file_test (base, G_FILE_TEST_EXISTS)) if (g_file_test (base, G_FILE_TEST_EXISTS))
return g_strdup (base); return g_strdup (base);

View File

@ -4091,8 +4091,8 @@ gtk_ctree_find_node_ptr (GtkCTree *ctree,
{ {
GtkCTreeNode *node; GtkCTreeNode *node;
g_return_val_if_fail (GTK_IS_CTREE (ctree), FALSE); g_return_val_if_fail (GTK_IS_CTREE (ctree), NULL);
g_return_val_if_fail (ctree_row != NULL, FALSE); g_return_val_if_fail (ctree_row != NULL, NULL);
if (ctree_row->parent) if (ctree_row->parent)
node = GTK_CTREE_ROW (ctree_row->parent)->children; node = GTK_CTREE_ROW (ctree_row->parent)->children;

View File

@ -122,7 +122,7 @@ gtk_editable_get_chars (GtkEditable *editable,
gint start, gint start,
gint end) gint end)
{ {
g_return_val_if_fail (GTK_IS_EDITABLE (editable), FALSE); g_return_val_if_fail (GTK_IS_EDITABLE (editable), NULL);
return GTK_EDITABLE_GET_CLASS (editable)->get_chars (editable, start, end); return GTK_EDITABLE_GET_CLASS (editable)->get_chars (editable, start, end);
} }

View File

@ -203,7 +203,7 @@ gtk_text_mark_get_buffer (GtkTextMark *mark)
{ {
GtkTextLineSegment *seg; GtkTextLineSegment *seg;
g_return_val_if_fail (GTK_IS_TEXT_MARK (mark), FALSE); g_return_val_if_fail (GTK_IS_TEXT_MARK (mark), NULL);
seg = mark->segment; seg = mark->segment;