aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-spinner.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 04:58:27 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-27 04:58:27 +0800
commit333656eba50f2120bbee3e817b8faf0baf448faf (patch)
tree3869bc4847dd4ab67625b82207ff98ef19045e8d /widgets/misc/e-spinner.c
parent1682814ef78902b385fe84589f8755b0ff4b5b5a (diff)
parentffa17ed195a6bbb40d386fb572b7941e22f47f8d (diff)
downloadgsoc2013-evolution-333656eba50f2120bbee3e817b8faf0baf448faf.tar.gz
gsoc2013-evolution-333656eba50f2120bbee3e817b8faf0baf448faf.tar.zst
gsoc2013-evolution-333656eba50f2120bbee3e817b8faf0baf448faf.zip
Merge branch 'warnings'
Diffstat (limited to 'widgets/misc/e-spinner.c')
-rw-r--r--widgets/misc/e-spinner.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/misc/e-spinner.c b/widgets/misc/e-spinner.c
index d980991b03..6e18410018 100644
--- a/widgets/misc/e-spinner.c
+++ b/widgets/misc/e-spinner.c
@@ -422,7 +422,7 @@ e_spinner_cache_get_images (ESpinnerCache *cache,
LOG ("Getting animation images for screen %p at size %d", screen, icon_size);
- g_return_val_if_fail (icon_size >= 0 && icon_size < LAST_ICON_SIZE, NULL);
+ g_return_val_if_fail (icon_size < LAST_ICON_SIZE, NULL);
/* Backward compat: "invalid" meant "native" size which doesn't exist anymore */
if (icon_size == GTK_ICON_SIZE_INVALID)
@@ -665,8 +665,8 @@ e_spinner_expose (GtkWidget *widget,
/* Otherwise |images| will be NULL anyway */
g_return_val_if_fail (images->n_animation_pixbufs > 0, FALSE);
- g_return_val_if_fail (details->current_image >= 0 &&
- details->current_image < images->n_animation_pixbufs, FALSE);
+ g_return_val_if_fail (
+ details->current_image < images->n_animation_pixbufs, FALSE);
pixbuf = images->animation_pixbufs[details->current_image];