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:
committed by
Michael Natterer
parent
b699ac5853
commit
f385a771e1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user