use g_return_val_if_fail() now that the function has a return value.

2008-08-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkstatusicon.c (gtk_status_icon_get_gicon): use
	g_return_val_if_fail() now that the function has a return value.


svn path=/trunk/; revision=21095
This commit is contained in:
Michael Natterer
2008-08-12 14:45:35 +00:00
committed by Michael Natterer
parent b699ac5853
commit f385a771e1
2 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2008-08-12 Michael Natterer <mitch@imendio.com>
* gtk/gtkstatusicon.c (gtk_status_icon_get_gicon): use
g_return_val_if_fail() now that the function has a return value.
2008-08-12 Sven Neumann <sven@gimp.org>
* gtk/gtkaccellabel.c

View File

@@ -1737,12 +1737,12 @@ gtk_status_icon_get_gicon (GtkStatusIcon *status_icon)
{
GtkStatusIconPrivate *priv;
g_return_if_fail (GTK_IS_STATUS_ICON (status_icon));
g_return_val_if_fail (GTK_IS_STATUS_ICON (status_icon), NULL);
priv = status_icon->priv;
g_return_if_fail (priv->storage_type == GTK_IMAGE_GICON ||
priv->storage_type == GTK_IMAGE_EMPTY);
g_return_val_if_fail (priv->storage_type == GTK_IMAGE_GICON ||
priv->storage_type == GTK_IMAGE_EMPTY, NULL);
if (priv->storage_type == GTK_IMAGE_EMPTY)
priv->image_data.gicon = NULL;