~vcs-imports/gexiv2/trunk

« back to all changes in this revision

Viewing changes to gexiv2/gexiv2-metadata.cpp

  • Committer: jim
  • Date: 2011-02-03 06:32:48 UTC
  • Revision ID: svn-v4:3d32681d-0f36-45c0-afa7-64c43348dfec:gexiv2/trunk:2604
Merge from 0.3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include "gexiv2-preview-properties-private.h"
17
17
#include "gexiv2-preview-image.h"
18
18
#include "gexiv2-preview-image-private.h"
 
19
#include "gexiv2-log.h"
 
20
#include "gexiv2-log-private.h"
19
21
#include <string>
20
22
#include <glib-object.h>
21
23
#include <gio/gio.h>
49
51
    self->priv->pixel_height = -1;
50
52
    
51
53
    /* the others are static members and need not to be initialized */
 
54
    
 
55
    /*  install GLib logging in place of Exiv2's default (where everything is dumped to stderr)
 
56
        but only if the user hasn't beaten us to the punch
 
57
        
 
58
        if user wants old behavior they should code this:
 
59
            gexiv2_log_set_handler(gexiv2_log_get_default_handler());
 
60
    */
 
61
    if (!gexiv2_log_is_handler_installed())
 
62
        gexiv2_log_use_glib_logging();
52
63
}
53
64
 
54
65
static void gexiv2_metadata_class_init (GExiv2MetadataClass *klass) {