~vish/ubuntu/maverick/pidgin/bug25979

« back to all changes in this revision

Viewing changes to libpurple/xmlnode.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-03-09 23:25:48 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20090309232548-f40pm5ooqwd64t0e
Tags: 1:2.5.5-1ubuntu1
* Merge from debian, remaining changes: (LP: #316636, #336647)
  - debian/control:
    + Add Build-Deps on liblaunchpad-integration-dev, intltool,
    network-manager-dev
    + Add epoch in dependencies
    + Drop the libpurple0 dependency on libpurple-bin
  - debian/libpurple0.symbols: add epoch to symbol
  - debian/pidgin-dbg.preinst, debian/pidgin-dev.preinst,
    debian/pidgin.preinst: add epoch
  - Update debian/prefs.xml to set the notify plugin prefs
    /plugins/gtk/X11/notify/*, set /pidgin/plugins/loaded to load
    the notify plugin and enable the standard logging options by default
  - debian/rules:
    + remove --disable-nm as nm has been fixed in Ubuntu
    + Add X-Ubuntu-Gettext-Domain to the desktop file and update the
      translation templates in common-install-impl::
  - debian/patches:
    + 02_lpi.patch for LP integration
    + 04_let_crasher_for_apport.patch to stop catching the SIGSEGV signal
      and let apport handle it
    + 05_default_to_irc_ubuntu_com.patch to set the default IRC
      server to irc.ubuntu.com
    + 70_autoconf.patch
    + 60_1024x600_gtk*.c.patch: Add scrolled bars into account dialog,
      pounce windows and preference window when screen height is less than 600.
* Adapt debian/patches/02_lpi.patch
* Re-generate debian/patches/70_autoconf.patch
* Remove debian/patches/fix-icons-backport-from-2.5.5mtn.diff as taken
  upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
        node->prefix = g_strdup(prefix);
304
304
}
305
305
 
306
 
const char *xmlnode_get_prefix(xmlnode *node)
 
306
const char *xmlnode_get_prefix(const xmlnode *node)
307
307
{
308
308
        g_return_val_if_fail(node != NULL, NULL);
309
309
        return node->prefix;
443
443
}
444
444
 
445
445
static char *
446
 
xmlnode_to_str_helper(xmlnode *node, int *len, gboolean formatting, int depth)
 
446
xmlnode_to_str_helper(const xmlnode *node, int *len, gboolean formatting, int depth)
447
447
{
448
448
        GString *text = g_string_new("");
449
449
        const char *prefix;
450
 
        xmlnode *c;
 
450
        const xmlnode *c;
451
451
        char *node_name, *esc, *esc2, *tab = NULL;
452
452
        gboolean need_end = FALSE, pretty = formatting;
453
453
 
537
537
}
538
538
 
539
539
char *
540
 
xmlnode_to_str(xmlnode *node, int *len)
 
540
xmlnode_to_str(const xmlnode *node, int *len)
541
541
{
542
542
        return xmlnode_to_str_helper(node, len, FALSE, 0);
543
543
}
544
544
 
545
545
char *
546
 
xmlnode_to_formatted_str(xmlnode *node, int *len)
 
546
xmlnode_to_formatted_str(const xmlnode *node, int *len)
547
547
{
548
548
        char *xml, *xml_with_declaration;
549
549