replace "icon && G_IS_ICON (icon)" by simply "G_IS_ICON (icon)".

2008-02-06  Michael Natterer  <mitch@imendio.com>

	* gfileinfo.c (g_file_info_get_icon): replace
	"icon && G_IS_ICON (icon)" by simply "G_IS_ICON (icon)".


svn path=/trunk/; revision=6463
This commit is contained in:
Michael Natterer 2008-02-06 13:22:57 +00:00 committed by Michael Natterer
parent 4e9a5de905
commit 2b02891ef7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-02-06 Michael Natterer <mitch@imendio.com>
* gfileinfo.c (g_file_info_get_icon): replace
"icon && G_IS_ICON (icon)" by simply "G_IS_ICON (icon)".
2008-02-06 Tomas Bzatek <tbzatek@redhat.com>
* gfile.c (g_file_create):

View File

@ -1315,7 +1315,7 @@ g_file_info_get_icon (GFileInfo *info)
value = g_file_info_find_value (info, attr);
obj = _g_file_attribute_value_get_object (value);
if (obj != NULL && G_IS_ICON (obj))
if (G_IS_ICON (obj))
return G_ICON (obj);
return NULL;
}