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

« back to all changes in this revision

Viewing changes to gdata/gdata-access-rule.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:
330
330
        /* Chain up to the parent class */
331
331
        GDATA_PARSABLE_CLASS (gdata_access_rule_parent_class)->get_xml (parsable, xml_string);
332
332
 
333
 
        if (priv->role != NULL)
 
333
        if (priv->role != NULL) {
334
334
                /* gAcl:role */
335
 
                g_string_append_printf (xml_string, "<gAcl:role value='%s'/>", priv->role);
 
335
                gdata_parser_string_append_escaped (xml_string, "<gAcl:role value='", priv->role, "'/>");
 
336
        }
336
337
 
337
 
        if (priv->scope_value != NULL){
 
338
        if (priv->scope_value != NULL) {
338
339
                /* gAcl:scope */
339
 
                if (priv->scope_type != NULL)
340
 
                        g_string_append_printf (xml_string, "<gAcl:scope type='%s' value='%s'/>", priv->scope_type, priv->scope_value);
341
 
                else
342
 
                        g_string_append_printf (xml_string, "<gAcl:scope value='%s'/>", priv->scope_value);
 
340
                if (priv->scope_type != NULL) {
 
341
                        gdata_parser_string_append_escaped (xml_string, "<gAcl:scope type='", priv->scope_type, "'");
 
342
                        gdata_parser_string_append_escaped (xml_string, " value='", priv->scope_value, "'/>");
 
343
                } else {
 
344
                        gdata_parser_string_append_escaped (xml_string, "<gAcl:scope value='", priv->scope_value, "'/>");
 
345
                }
343
346
        }
344
347
}
345
348