forked from AuroraMiddleware/gtk
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:
parent
4f44e655a4
commit
ce58806c0d
@ -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>
|
||||
|
||||
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
|
||||
|
@ -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>
|
||||
|
||||
* 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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user