summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁlvaro Peña <alvaropg@gmail.com>2013-08-26 19:22:27 +0200
committerÁlvaro Peña <alvaropg@gmail.com>2013-08-26 19:22:27 +0200
commitc7d3286d369bd4e0326b2d065643f86a2966cf93 (patch)
tree3d20b3b2885d39a0b6c84c6ad1511d554b162fd7
parentbc6b95312c96231adab6fe8c23127c5126e33edd (diff)
downloadlibgfbgraph-c7d3286d369bd4e0326b2d065643f86a2966cf93.tar.gz
photo: fix return value as a guint in case the given object isn't a GFBGraphPhoto
-rw-r--r--gfbgraph/gfbgraph-photo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfbgraph/gfbgraph-photo.c b/gfbgraph/gfbgraph-photo.c
index 50bf0f7..1a26836 100644
--- a/gfbgraph/gfbgraph-photo.c
+++ b/gfbgraph/gfbgraph-photo.c
@@ -480,7 +480,7 @@ gfbgraph_photo_get_default_source_uri (GFBGraphPhoto *photo)
guint
gfbgraph_photo_get_default_width (GFBGraphPhoto *photo)
{
- g_return_val_if_fail (GFBGRAPH_IS_PHOTO (photo), -1);
+ g_return_val_if_fail (GFBGRAPH_IS_PHOTO (photo), 0);
return photo->priv->width;
}
@@ -494,7 +494,7 @@ gfbgraph_photo_get_default_width (GFBGraphPhoto *photo)
guint
gfbgraph_photo_get_default_height (GFBGraphPhoto *photo)
{
- g_return_val_if_fail (GFBGRAPH_IS_PHOTO (photo), -1);
+ g_return_val_if_fail (GFBGRAPH_IS_PHOTO (photo), 0);
return photo->priv->height;
}