~ubuntu-branches/ubuntu/precise/gnome-control-center/precise-updates

« back to all changes in this revision

Viewing changes to capplets/appearance/gnome-wp-xml.c

Tags: upstream-2.27.5
ImportĀ upstreamĀ versionĀ 2.27.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
      wp->deleted = gnome_wp_xml_get_bool (list, "deleted");
127
127
 
128
128
      for (wpa = list->children; wpa != NULL; wpa = wpa->next) {
129
 
        if (!strcmp ((gchar *)wpa->name, "filename")) {
 
129
        if (wpa->type == XML_COMMENT_NODE) {
 
130
          continue;
 
131
        } else if (!strcmp ((gchar *)wpa->name, "filename")) {
130
132
          if (wpa->last != NULL && wpa->last->content != NULL) {
131
133
            const char * none = "(none)";
132
134
            gchar *content = g_strstrip ((gchar *)wpa->last->content);
182
184
        } else if (!strcmp ((gchar *)wpa->name, "text")) {
183
185
          /* Do nothing here, libxml2 is being weird */
184
186
        } else {
185
 
          g_warning ("Unknown Tag: %s\n", wpa->name);
 
187
          g_warning ("Unknown Tag: %s", wpa->name);
186
188
        }
187
189
      }
188
190