]> Pileus Git - ~andy/gtk/blobdiff - gdk-pixbuf/gdk-pixbuf-util.c
[quartz] Delete the typedef of GdkDevicePrivate
[~andy/gtk] / gdk-pixbuf / gdk-pixbuf-util.c
index f682aec9ba4bdb8bde426cb90824d7d07d9ee3ec..58ee842cc7f4791d8c8e2b470f5885ac2250044f 100644 (file)
@@ -55,7 +55,7 @@ gdk_pixbuf_add_alpha (const GdkPixbuf *pixbuf,
        GdkPixbuf *new_pixbuf;
        int x, y;
 
-       g_return_val_if_fail (pixbuf != NULL, NULL);
+       g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
        g_return_val_if_fail (pixbuf->colorspace == GDK_COLORSPACE_RGB, NULL);
        g_return_val_if_fail (pixbuf->n_channels == 3 || pixbuf->n_channels == 4, NULL);
        g_return_val_if_fail (pixbuf->bits_per_sample == 8, NULL);
@@ -267,7 +267,7 @@ gdk_pixbuf_saturate_and_pixelate(const GdkPixbuf *src,
  * Return value: A newly-created pixbuf, or a reference to the
  * input pixbuf (with an increased reference count).
  *
- * Since 2.12
+ * Since: 2.12
  **/
 GdkPixbuf *
 gdk_pixbuf_apply_embedded_orientation (GdkPixbuf *src)
@@ -277,7 +277,7 @@ gdk_pixbuf_apply_embedded_orientation (GdkPixbuf *src)
        GdkPixbuf   *temp;
        GdkPixbuf   *dest;
 
-       g_return_val_if_fail (src != NULL, NULL);
+       g_return_val_if_fail (GDK_IS_PIXBUF (src), NULL);
 
        /* Read the orientation option associated with the pixbuf */
        orientation_string = gdk_pixbuf_get_option (src, "orientation");