~ubuntu-branches/ubuntu/natty/shotwell/natty

« back to all changes in this revision

Viewing changes to src/Orientation.vala

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-08-16 16:58:02 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100816165802-j6t0o788sk21djtr
Tags: 0.6.91-0ubuntu1
* New upstream release
* debian/control:
  - Build-depend on valac >= 0.9.5
  - Build-depend on libgexiv2-dev >= 0.1.91

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
            case LEFT_BOTTOM:
74
74
                return TOP_LEFT;
75
75
                
76
 
            default: {
 
76
            default:
77
77
                error("rotate_clockwise: %d", this);
78
 
                
79
 
                return this;
80
 
            }
81
78
        }
82
79
    }
83
80
    
107
104
            case LEFT_BOTTOM:
108
105
                return BOTTOM_RIGHT;
109
106
                
110
 
            default: {
 
107
            default:
111
108
                error("rotate_counterclockwise: %d", this);
112
 
                
113
 
                return this;
114
 
            }
115
109
        }
116
110
    }
117
111
    
141
135
            case LEFT_BOTTOM:
142
136
                return LEFT_TOP;
143
137
                
144
 
            default: {
 
138
            default:
145
139
                error("flip_top_to_bottom: %d", this);
146
 
                
147
 
                return this;
148
 
            }
149
140
        }
150
141
    }
151
142
    
175
166
            case LEFT_BOTTOM:
176
167
                return RIGHT_BOTTOM;
177
168
                
178
 
            default: {
 
169
            default:
179
170
                error("flip_left_to_right: %d", this);
180
 
                
181
 
                return this;
182
 
            }
183
171
        }
184
172
    }
185
173
    
199
187
            
200
188
            default:
201
189
                error("perform: %d", (int) rotation);
202
 
                
203
 
                return this;
204
190
        }
205
191
    }
206
192
    
234
220
            
235
221
            default:
236
222
                error("to_rotations: %d", this);
237
 
                
238
 
                return { };
239
223
        }
240
224
    }
241
225
    
257
241
 
258
242
            default:
259
243
                error("rotate_dimensions: %d", this);
260
 
                
261
 
                return dim;
262
244
        }
263
245
    }
264
246
    
306
288
            
307
289
            default:
308
290
                error("rotate_pixbuf: %d", this);
309
 
            break;
310
291
        }
311
292
        
312
293
        return pixbuf;
372
353
                
373
354
            default:
374
355
                error("rotate_point: %d", this);
375
 
            break;
376
356
        }
377
357
        
378
358
        return rotated;
434
414
                
435
415
            default:
436
416
                error("rotate_point: %d", this);
437
 
            break;
438
417
        }
439
418
        
440
419
        return derotated;
485
464
            
486
465
            default:
487
466
                error("Unknown rotation: %d", (int) this);
488
 
                
489
 
                return pixbuf;
490
467
        }
491
468
    }
492
469
    
504
481
            
505
482
            default:
506
483
                error("Unknown rotation: %d", (int) this);
507
 
                
508
 
                return this;
509
484
        }
510
485
    }
511
486
}