Return NULL instead of FALSE in g_return_val_if_fail in a

2006-03-31  Behdad Esfahbod  <behdad@gnome.org>

        * gtk/gtkfilesystem.c (gtk_file_system_get_bookmark_label):
        * gtk/gtklinkbutton.c (gtk_link_button_new_with_label): Return NULL
        instead of FALSE in g_return_val_if_fail in a pointer-returning
        function. (#336764, Morten Welinder)
This commit is contained in:
Behdad Esfahbod 2006-04-01 00:25:00 +00:00 committed by Behdad Esfahbod
parent 67e5f53e1e
commit 13bcd2c002
4 changed files with 18 additions and 4 deletions

View File

@ -1,6 +1,13 @@
2006-03-31 Behdad Esfahbod <behdad@gnome.org>
* gtk/gtkfilesystem.c (gtk_file_system_get_bookmark_label):
* gtk/gtklinkbutton.c (gtk_link_button_new_with_label): Return NULL
instead of FALSE in g_return_val_if_fail in a pointer-returning
function. (#336764, Morten Welinder)
2006-04-01 Gora Mohanty <gmohanty@cvs.gnome.org>
* configure.in: Added 'or' (Oriya) to ALL_LINGUAS.
* configure.in: Added 'or' (Oriya) to ALL_LINGUAS.
2006-03-31 Matthias Clasen <mclasen@redhat.com>

View File

@ -1,6 +1,13 @@
2006-03-31 Behdad Esfahbod <behdad@gnome.org>
* gtk/gtkfilesystem.c (gtk_file_system_get_bookmark_label):
* gtk/gtklinkbutton.c (gtk_link_button_new_with_label): Return NULL
instead of FALSE in g_return_val_if_fail in a pointer-returning
function. (#336764, Morten Welinder)
2006-04-01 Gora Mohanty <gmohanty@cvs.gnome.org>
* configure.in: Added 'or' (Oriya) to ALL_LINGUAS.
* configure.in: Added 'or' (Oriya) to ALL_LINGUAS.
2006-03-31 Matthias Clasen <mclasen@redhat.com>

View File

@ -793,7 +793,7 @@ gtk_file_system_get_bookmark_label (GtkFileSystem *file_system,
GtkFileSystemIface *iface;
g_return_val_if_fail (GTK_IS_FILE_SYSTEM (file_system), NULL);
g_return_val_if_fail (path != NULL, FALSE);
g_return_val_if_fail (path != NULL, NULL);
iface = GTK_FILE_SYSTEM_GET_IFACE (file_system);
if (iface->get_bookmark_label)

View File

@ -563,7 +563,7 @@ gtk_link_button_new_with_label (const gchar *uri,
{
GtkWidget *retval;
g_return_val_if_fail (uri != NULL, FALSE);
g_return_val_if_fail (uri != NULL, NULL);
if (!label)
return gtk_link_button_new (uri);