~ubuntu-branches/ubuntu/wily/caja/wily

« back to all changes in this revision

Viewing changes to src/caja-image-properties-page.c

  • Committer: Package Import Robot
  • Author(s): John Paul Adrian Glaubitz, Martin Wimpress, John Paul Adrian Glaubitz
  • Date: 2015-08-10 13:39:55 UTC
  • mfrom: (1.2.1) (9.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20150810133955-b2uyptg7cf8rn8su
Tags: 1.10.3-1
[ Martin Wimpress ]
* New upstream release.
* debian/caja-common.install:
  + Add common files.
* debian/caja.install:
  + Remove common files.
* debian/libcaja-extension-dev.install:
  + Add usr/share/gtk-doc.
* debian/rules:
  + Add --enable-gtk-doc.
  + Remove dfsg suffix.
* debian/watch:
  + Remove dfsg suffix.

[ John Paul Adrian Glaubitz ]
* Fix spelling in debian/control (allows to -> allows one to).
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include <libexif/exif-data.h>
39
39
#include <libexif/exif-ifd.h>
40
40
#include <libexif/exif-loader.h>
41
 
#endif
 
41
#endif /*HAVE_EXIF*/
42
42
#ifdef HAVE_EXEMPI
43
43
#include <exempi/xmp.h>
44
44
#include <exempi/xmpconsts.h>
45
 
#endif
 
45
#endif /*HAVE_EXEMPI*/
46
46
 
47
47
#define LOAD_BUFFER_SIZE 8192
48
48
 
62
62
#endif /*HAVE_EXIF*/
63
63
#ifdef HAVE_EXEMPI
64
64
    XmpPtr     xmp;
65
 
#endif
 
65
#endif /*HAVE_EXEMPI*/
66
66
};
67
67
 
68
68
#ifdef HAVE_EXIF
192
192
exif_content_callback (ExifContent *content, gpointer data)
193
193
{
194
194
    struct ExifAttribute *attribute;
195
 
#ifndef HAVE_OLD_EXIF
196
195
    char b[1024];
197
 
#endif
198
196
 
199
197
    attribute = (struct ExifAttribute *)data;
200
198
    if (attribute->found)
202
200
        return;
203
201
    }
204
202
 
205
 
#ifdef HAVE_OLD_EXIF
206
 
    attribute->value = g_strdup (exif_content_get_value (content, attribute->tag));
207
 
#else
208
203
    attribute->value = g_strdup (exif_content_get_value (content, attribute->tag, b, sizeof(b)));
209
 
#endif
210
204
    if (attribute->value != NULL)
211
205
    {
212
206
        attribute->found = TRUE;
315
309
    XmpStringPtr value;
316
310
 
317
311
    value = xmp_string_new();
318
 
#ifdef HAVE_EXEMPI_NEW_API
 
312
 
319
313
    if (xmp_get_property (xmp, ns, propname, value, &options))
320
314
    {
321
 
#else
322
 
    if (xmp_get_property_and_bits (xmp, ns, propname, value, &options))
323
 
    {
324
 
#endif
325
315
        if (XMP_IS_PROP_SIMPLE (options))
326
316
        {
327
317
            append_label_take_str
381
371
        /* TODO add CC licenses */
382
372
    }
383
373
}
384
 
#endif
 
374
#endif /*HAVE EXEMPI*/
385
375
 
386
376
static void
387
377
load_finished (CajaImagePropertiesPage *page)
399
389
    {
400
390
#ifdef HAVE_EXIF
401
391
        ExifData *exif_data;
402
 
#endif
 
392
#endif /*HAVE_EXIF*/
403
393
 
404
394
        format = gdk_pixbuf_loader_get_format (page->details->loader);
405
395
 
431
421
#endif /*HAVE_EXIF*/
432
422
#ifdef HAVE_EXEMPI
433
423
        append_xmpdata_string (page->details->xmp, page);
434
 
#endif /*HAVE EXEMPI*/
 
424
#endif /*HAVE_EXEMPI*/
435
425
    }
436
426
    else
437
427
    {
457
447
        xmp_free(page->details->xmp);
458
448
        page->details->xmp = NULL;
459
449
    }
460
 
#endif
 
450
#endif /*HAVE_EXEMPI*/
461
451
}
462
452
 
463
453
static void
490
480
                                                count_read);
491
481
#else
492
482
        exif_still_loading = 0;
493
 
#endif
 
483
#endif /*HAVE_EXIF*/
494
484
 
495
485
        if (page->details->pixbuf_still_loading)
496
486
        {