~ubuntu-branches/ubuntu/natty/libgdata/natty-updates

« back to all changes in this revision

Viewing changes to gdata/services/picasaweb/gdata-picasaweb-album.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-01-05 11:09:00 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110105110900-gkjnbslnr18s45us
Tags: 0.8.0-0ubuntu1
* New upstream release
* debian/control:
  - Use gir1.2 packages
  - Use standards version 3.9.1
  - Add Vcs-Bzr link
  - Rename libgdata10 to libgdata11
* debian/rules:
  - Drop simple-patchsys.mk
* debian/source:
  - Use source version 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 *
59
59
 *              for (thumbnails = gdata_picasaweb_album_get_thumbnails (album); thumbnails != NULL; thumbnails = thumbnails->next) {
60
60
 *                      GDataMediaThumbnail *thumbnail;
61
 
 *                      GFile *new_file;
 
61
 *                      GDataDownloadStream *download_stream;
 
62
 *                      GdkPixbuf *pixbuf;
62
63
 *
63
64
 *                      thumbnail = GDATA_MEDIA_THUMBNAIL (thumbnails->data);
64
 
 *                      /<!-- -->* Do something fun with the thumbnails, like download and display them.
 
65
 *                      /<!-- -->* Do something fun with the thumbnails, like download and display them. We could just as easily download them into
 
66
 *                       * files using g_file_create() and g_output_stream_splice(), rather than create GdkPixbuf<!-- -->s directly from them.
65
67
 *                       * Note that this is a blocking operation. *<!-- -->/
66
 
 *                      new_file = gdata_media_thumbnail_download (thumbnail, GDATA_SERVICE (service), default_filename, target_file, FALSE,
67
 
 *                                                                 NULL, NULL);
 
68
 *                      download_stream = gdata_media_thumbnail_download (thumbnail, GDATA_SERVICE (service), NULL, NULL);
 
69
 *                      pixbuf = gdk_pixbuf_new_from_stream (G_INPUT_STREAM (download_stream), NULL, NULL);
 
70
 *                      g_object_unref (download_stream);
68
71
 *                      /<!-- -->* ... *<!-- -->/
69
 
 *                      g_object_unref (new_file);
 
72
 *                      g_object_unref (pixbuf);
70
73
 *              }
71
74
 *
72
75
 *              /<!-- -->* Do something worthwhile with your album data *<!-- -->/
765
768
 
766
769
        /* Add all the album-specific XML */
767
770
        if (priv->album_id != NULL)
768
 
                g_string_append_printf (xml_string, "<gphoto:id>%s</gphoto:id>", priv->album_id);
 
771
                gdata_parser_string_append_escaped (xml_string, "<gphoto:id>", priv->album_id, "</gphoto:id>");
769
772
 
770
773
        if (priv->location != NULL)
771
774
                gdata_parser_string_append_escaped (xml_string, "<gphoto:location>", priv->location, "</gphoto:location>");
803
806
        /* TODO:
804
807
         * - Finish supporting all tags
805
808
         * - Check all tags here are valid for insertions and updates
806
 
         * - Check things are escaped (or not) as appropriate
807
 
         * - add GML support
808
809
         */
809
810
}
810
811