~vcs-imports/libiptcdata/main

« back to all changes in this revision

Viewing changes to python/pyiptcdataset.c

  • Committer: dmoore
  • Date: 2008-12-09 07:18:17 UTC
  • Revision ID: vcs-imports@canonical.com-20081209071817-5x8qwjcoauzik0lt
2008-12-08  Ian Wienand  <ianw@debian.org>

    * python/pyiptcdataset.c: Don't poke around inside datastructures
    for title/description info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
get_title(DataSetObject *self, void *closure)
65
65
{
66
66
        check_valid(self, NULL);
67
 
        return Py_BuildValue("s", self->ds->info->title);
 
67
        return Py_BuildValue("s", iptc_tag_get_title(self->ds->record, self->ds->tag));
68
68
}
69
69
 
70
70
/* DESCRIPTION */
72
72
get_description(DataSetObject *self, void *closure)
73
73
{
74
74
        check_valid(self, NULL);
75
 
        return Py_BuildValue("s", self->ds->info->description);
 
75
        return Py_BuildValue("s", iptc_tag_get_description(self->ds->record, self->ds->tag));
76
76
}
77
77
 
78
78
/* VALUE */