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:
		
				
					committed by
					
						
						Behdad Esfahbod
					
				
			
			
				
	
			
			
			
						parent
						
							67e5f53e1e
						
					
				
				
					commit
					13bcd2c002
				
			@ -1,3 +1,10 @@
 | 
			
		||||
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.
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,10 @@
 | 
			
		||||
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.
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user