~ubuntu-branches/ubuntu/maverick/conglomerate/maverick

« back to all changes in this revision

Viewing changes to src/cong-editor-area-unknown-tag.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-08 05:07:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108050706-bcg60nwqf1z3w0d6
Tags: 0.9.1-1ubuntu1
* Resynchronise with Debian (Closes: #4397).
  - Thanks, Jordan Mantha.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
on_node_set_attribute (CongDocument *doc,
96
96
                       CongNodePtr node, 
97
97
                       xmlNs *ns_ptr, 
98
 
                       const xmlChar *name, 
99
 
                       const xmlChar *value,
 
98
                       const gchar *name, 
 
99
                       const gchar *value,
100
100
                       CongEditorAreaUnknownTag *area_unknown_tag);
101
101
 
102
102
static void
103
103
on_node_remove_attribute (CongDocument *doc,
104
104
                          CongNodePtr node, 
105
105
                          xmlNs *ns_ptr, 
106
 
                          const xmlChar *name, 
 
106
                          const gchar *name, 
107
107
                          CongEditorAreaUnknownTag *area_unknown_tag);
108
108
 
109
109
static void
238
238
        if ((node->ns != NULL) && (node->ns->prefix != NULL)) {
239
239
                tag_string = g_strdup_printf ("%s:%s", node->ns->prefix, node->name);
240
240
        } else {
241
 
                tag_string = g_strdup (node->name);
 
241
                tag_string = g_strdup ((const gchar*)node->name);
242
242
        }
243
243
 
244
244
        start_tag_string_begin = g_strdup_printf("<span foreground=\"%s\">&lt;%s</span>",colour_string_element, tag_string);
539
539
        if ((attr->ns != NULL) && (attr->ns->prefix != NULL)) {
540
540
                attribute_name = g_strdup_printf ("%s:%s", attr->ns->prefix, attr->name);
541
541
        } else {
542
 
                attribute_name = g_strdup (attr->name);
 
542
                attribute_name = g_strdup ((const gchar*)attr->name);
543
543
        }
544
544
                                        
545
545
        attr_string = g_strdup_printf (" <span foreground=\"%s\">%s=\"%s\"</span>",colour_string_attribute, attribute_name, attr->children->content);
563
563
on_node_set_attribute (CongDocument *doc,
564
564
                       CongNodePtr node, 
565
565
                       xmlNs *ns_ptr, 
566
 
                       const xmlChar *name, 
567
 
                       const xmlChar *value,
 
566
                       const gchar *name, 
 
567
                       const gchar *value,
568
568
                       CongEditorAreaUnknownTag *area_unknown_tag)
569
569
{
570
570
        if (node == PRIVATE(area_unknown_tag)->xml_node) {
576
576
on_node_remove_attribute (CongDocument *doc,
577
577
                          CongNodePtr node, 
578
578
                          xmlNs *ns_ptr, 
579
 
                          const xmlChar *name, 
 
579
                          const gchar *name, 
580
580
                          CongEditorAreaUnknownTag *area_unknown_tag)
581
581
{
582
582
        if (node == PRIVATE(area_unknown_tag)->xml_node) {