~noskcaj/ubuntu/trusty/gnome-documents/3.10.2

« back to all changes in this revision

Viewing changes to src/miner/gd-gdata-miner.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jeremy Bicha
  • Date: 2013-06-17 22:24:54 UTC
  • mfrom: (3.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20130617222454-biw3dmaqdd9qpbh7
Tags: 3.8.3.1-1
[ Jeremy Bicha ]
* New upstream release
* debian/control.in:
  - Add missing dependency on gir1.2-gnomedesktop-3.0
  - Bump minimum GTK for newer libgd
  - Build-depend on gtk-doc-tools and yelp-tools
  - Build-depend on inkscape and poppler-utils to generate
    getting-started PDF
* debian/rules: --enable-getting-started

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  gchar *resource = NULL;
40
40
  gchar *date, *resource_url, *identifier;
41
41
  const gchar *class = NULL;
 
42
  const gchar *mimetype_override = NULL;
42
43
  gboolean mtime_changed, resource_exists;
43
44
  gint64 new_mtime;
44
45
 
131
132
  if (*error != NULL)
132
133
    goto out;
133
134
 
 
135
  /* fake a drawing mimetype, so Documents can get the correct icon */
 
136
  if (GDATA_IS_DOCUMENTS_DRAWING (doc_entry))
 
137
    mimetype_override = "application/vnd.sun.xml.draw";
 
138
  else if (GDATA_IS_DOCUMENTS_PDF (doc_entry))
 
139
    mimetype_override = "application/pdf";
 
140
 
 
141
  gd_miner_tracker_sparql_connection_insert_or_replace_triple
 
142
    (job->connection,
 
143
     job->cancellable, error,
 
144
     identifier, resource,
 
145
     "nie:mimeType", mimetype_override);
 
146
 
 
147
  if (*error != NULL)
 
148
    goto out;
 
149
 
134
150
  parents = gdata_entry_look_up_links (entry, PARENT_LINK_REL);
135
151
  for (l = parents; l != NULL; l = l->next)
136
152
    {
353
369
 
354
370
  miner_class->goa_provider_type = "google";
355
371
  miner_class->miner_identifier = MINER_IDENTIFIER;
 
372
  miner_class->version = 2;
356
373
 
357
374
  miner_class->create_service = create_service;
358
375
  miner_class->query = query_gdata;