Commit 037a036f authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Reindent

parent 8942a3a2
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
/* GdkPixbuf library - Progressive loader object
*
* Copyright (C) 1999 The Free Software Foundation
......@@ -209,7 +210,8 @@ gdk_pixbuf_loader_set_size (GdkPixbufLoader *loader,
GdkPixbufLoaderPrivate *priv = GDK_PIXBUF_LOADER (loader)->priv;
g_return_if_fail (width > 0 && height > 0);
if (!priv->size_fixed) {
if (!priv->size_fixed)
{
priv->width = width;
priv->height = height;
}
......@@ -221,7 +223,8 @@ gdk_pixbuf_loader_size_func (gint *width, gint *height, gpointer loader)
GdkPixbufLoaderPrivate *priv = GDK_PIXBUF_LOADER (loader)->priv;
/* allow calling gdk_pixbuf_loader_set_size() before the signal */
if (priv->width == 0 && priv->height == 0) {
if (priv->width == 0 && priv->height == 0)
{
priv->width = *width;
priv->height = *height;
}
......@@ -241,7 +244,8 @@ gdk_pixbuf_loader_prepare (GdkPixbuf *pixbuf,
GdkPixbufLoaderPrivate *priv = GDK_PIXBUF_LOADER (loader)->priv;
g_return_if_fail (pixbuf != NULL);
if (!priv->size_fixed) {
if (!priv->size_fixed)
{
/* Defend against lazy loaders which don't call size_func */
gint width = gdk_pixbuf_get_width (pixbuf);
gint height = gdk_pixbuf_get_height (pixbuf);
......@@ -614,14 +618,16 @@ gdk_pixbuf_loader_close (GdkPixbufLoader *loader,
}
}
if (priv->image_module && priv->image_module->stop_load && priv->context) {
if (priv->image_module && priv->image_module->stop_load && priv->context)
{
if (!priv->image_module->stop_load (priv->context, error))
retval = FALSE;
}
priv->closed = TRUE;
if (priv->needs_scale) {
if (priv->needs_scale)
{
GdkPixbuf *tmp, *pixbuf;
tmp = gdk_pixbuf_animation_get_static_image (priv->animation);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment