~ubuntu-multiseat/ubuntu/saucy/unity-greeter/bug1201122

« back to all changes in this revision

Viewing changes to src/cached-image.c

Tags: upstream-12.10.3
ImportĀ upstreamĀ versionĀ 12.10.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
static gboolean cached_image_real_draw (GtkWidget* base, cairo_t* c) {
191
191
        CachedImage * self;
192
192
        gboolean result = FALSE;
193
 
        cairo_t* _tmp0_;
194
 
        GdkPixbuf* _tmp1_ = NULL;
 
193
        GdkPixbuf* _tmp0_ = NULL;
 
194
        GdkPixbuf* _tmp1_;
195
195
        GdkPixbuf* _tmp2_;
196
 
        GdkPixbuf* _tmp3_;
197
 
        cairo_surface_t* _tmp4_ = NULL;
198
 
        cairo_surface_t* _tmp5_;
199
 
        cairo_surface_t* cached_surface;
200
 
        cairo_surface_t* _tmp6_;
 
196
        gboolean _tmp3_;
201
197
        self = (CachedImage*) base;
202
198
        g_return_val_if_fail (c != NULL, FALSE);
203
 
        _tmp0_ = c;
204
 
        g_object_get ((GtkImage*) self, "pixbuf", &_tmp1_, NULL);
 
199
        g_object_get ((GtkImage*) self, "pixbuf", &_tmp0_, NULL);
 
200
        _tmp1_ = _tmp0_;
205
201
        _tmp2_ = _tmp1_;
206
 
        _tmp3_ = _tmp2_;
207
 
        _tmp4_ = cached_image_get_cached_surface (_tmp0_, _tmp3_);
208
 
        _tmp5_ = _tmp4_;
209
 
        _g_object_unref0 (_tmp3_);
210
 
        cached_surface = _tmp5_;
211
 
        _tmp6_ = cached_surface;
212
 
        if (_tmp6_ != NULL) {
213
 
                cairo_t* _tmp7_;
214
 
                cairo_surface_t* _tmp8_;
215
 
                cairo_t* _tmp9_;
216
 
                _tmp7_ = c;
217
 
                _tmp8_ = cached_surface;
218
 
                cairo_set_source_surface (_tmp7_, _tmp8_, (gdouble) 0, (gdouble) 0);
219
 
                _tmp9_ = c;
220
 
                cairo_paint (_tmp9_);
 
202
        _tmp3_ = _tmp2_ != NULL;
 
203
        _g_object_unref0 (_tmp2_);
 
204
        if (_tmp3_) {
 
205
                cairo_t* _tmp4_;
 
206
                GdkPixbuf* _tmp5_ = NULL;
 
207
                GdkPixbuf* _tmp6_;
 
208
                GdkPixbuf* _tmp7_;
 
209
                cairo_surface_t* _tmp8_ = NULL;
 
210
                cairo_surface_t* _tmp9_;
 
211
                cairo_surface_t* cached_surface;
 
212
                cairo_surface_t* _tmp10_;
 
213
                _tmp4_ = c;
 
214
                g_object_get ((GtkImage*) self, "pixbuf", &_tmp5_, NULL);
 
215
                _tmp6_ = _tmp5_;
 
216
                _tmp7_ = _tmp6_;
 
217
                _tmp8_ = cached_image_get_cached_surface (_tmp4_, _tmp7_);
 
218
                _tmp9_ = _tmp8_;
 
219
                _g_object_unref0 (_tmp7_);
 
220
                cached_surface = _tmp9_;
 
221
                _tmp10_ = cached_surface;
 
222
                if (_tmp10_ != NULL) {
 
223
                        cairo_t* _tmp11_;
 
224
                        cairo_surface_t* _tmp12_;
 
225
                        cairo_t* _tmp13_;
 
226
                        _tmp11_ = c;
 
227
                        _tmp12_ = cached_surface;
 
228
                        cairo_set_source_surface (_tmp11_, _tmp12_, (gdouble) 0, (gdouble) 0);
 
229
                        _tmp13_ = c;
 
230
                        cairo_paint (_tmp13_);
 
231
                }
 
232
                _cairo_surface_destroy0 (cached_surface);
221
233
        }
222
234
        result = FALSE;
223
 
        _cairo_surface_destroy0 (cached_surface);
224
235
        return result;
225
236
}
226
237