[gtk+/gtk-2-22] Do not return values from a function returning void
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] Do not return values from a function returning void
- Date: Mon, 26 Jul 2010 10:07:05 +0000 (UTC)
commit 7a68f42d2eafd9113327b560dc3742ff0c31f77b
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Sun Jun 27 11:28:44 2010 +0100
Do not return values from a function returning void
gdk/gdkpixbuf-render.c | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/gdk/gdkpixbuf-render.c b/gdk/gdkpixbuf-render.c
index f4f5d2e..cf0121b 100644
--- a/gdk/gdkpixbuf-render.c
+++ b/gdk/gdkpixbuf-render.c
@@ -50,11 +50,14 @@
**/
void
gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
- GdkBitmap *bitmap,
- int src_x, int src_y,
- int dest_x, int dest_y,
- int width, int height,
- int alpha_threshold)
+ GdkBitmap *bitmap,
+ int src_x,
+ int src_y,
+ int dest_x,
+ int dest_y,
+ int width,
+ int height,
+ int alpha_threshold)
{
GdkGC *gc;
GdkColor color;
@@ -63,10 +66,10 @@ gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
int start, start_status;
int status;
- g_return_val_if_fail (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB, NULL);
- g_return_val_if_fail (gdk_pixbuf_get_n_channels (pixbuf) == 3 ||
- gdk_pixbuf_get_n_channels (pixbuf) == 4, NULL);
- g_return_val_if_fail (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8, NULL);
+ g_return_if_fail (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB);
+ g_return_if_fail (gdk_pixbuf_get_n_channels (pixbuf) == 3 ||
+ gdk_pixbuf_get_n_channels (pixbuf) == 4);
+ g_return_if_fail (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8);
if (width == -1)
width = gdk_pixbuf_get_width (pixbuf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]