Commit ce58806c authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 4f44e655
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>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
......
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>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
......
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>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
......
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>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
......
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>
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
......
......@@ -43,7 +43,7 @@ gchar *
demo_find_file (const char *base,
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))
return g_strdup (base);
......
......@@ -4091,8 +4091,8 @@ gtk_ctree_find_node_ptr (GtkCTree *ctree,
{
GtkCTreeNode *node;
g_return_val_if_fail (GTK_IS_CTREE (ctree), FALSE);
g_return_val_if_fail (ctree_row != NULL, FALSE);
g_return_val_if_fail (GTK_IS_CTREE (ctree), NULL);
g_return_val_if_fail (ctree_row != NULL, NULL);
if (ctree_row->parent)
node = GTK_CTREE_ROW (ctree_row->parent)->children;
......
......@@ -122,7 +122,7 @@ gtk_editable_get_chars (GtkEditable *editable,
gint start,
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);
}
......
......@@ -203,7 +203,7 @@ gtk_text_mark_get_buffer (GtkTextMark *mark)
{
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment