[Goodies-commits] r6513 - ristretto/branches/ristretto-gio/src
Stephan Arts
stephan at xfce.org
Mon Jan 19 22:19:35 CET 2009
Author: stephan
Date: 2009-01-19 21:19:35 +0000 (Mon, 19 Jan 2009)
New Revision: 6513
Modified:
ristretto/branches/ristretto-gio/src/image_transform_orientation.c
Log:
Fix warnings
Modified: ristretto/branches/ristretto-gio/src/image_transform_orientation.c
===================================================================
--- ristretto/branches/ristretto-gio/src/image_transform_orientation.c 2009-01-19 21:16:04 UTC (rev 6512)
+++ ristretto/branches/ristretto-gio/src/image_transform_orientation.c 2009-01-19 21:19:35 UTC (rev 6513)
@@ -159,9 +159,9 @@
if (trans_orientation->flip_vertical)
{
tmp_pixbuf = rstto_image_get_pixbuf (image);
- g_object_ref (tmp_pixbuf);
if (tmp_pixbuf)
{
+ g_object_ref (tmp_pixbuf);
/* Flip vertically (pass FALSE to gdk_pixbuf_flip) */
rstto_image_set_pixbuf (image, gdk_pixbuf_flip (tmp_pixbuf, FALSE));
g_object_unref (tmp_pixbuf);
@@ -171,9 +171,9 @@
if (trans_orientation->flip_horizontal)
{
tmp_pixbuf = rstto_image_get_pixbuf (image);
- g_object_ref (tmp_pixbuf);
if (tmp_pixbuf)
{
+ g_object_ref (tmp_pixbuf);
/* Flip horizontally (pass TRUE to gdk_pixbuf_flip) */
rstto_image_set_pixbuf (image, gdk_pixbuf_flip (tmp_pixbuf, TRUE));
g_object_unref (tmp_pixbuf);
@@ -182,9 +182,12 @@
tmp_pixbuf = rstto_image_get_pixbuf (image);
- g_object_ref (tmp_pixbuf);
- rstto_image_set_pixbuf (image, gdk_pixbuf_rotate_simple (tmp_pixbuf, (360+(trans_orientation->rotation))%360));
- g_object_unref (tmp_pixbuf);
+ if (tmp_pixbuf)
+ {
+ g_object_ref (tmp_pixbuf);
+ rstto_image_set_pixbuf (image, gdk_pixbuf_rotate_simple (tmp_pixbuf, (360+(trans_orientation->rotation))%360));
+ g_object_unref (tmp_pixbuf);
+ }
}
static gboolean
More information about the Goodies-commits
mailing list