~vish/ubuntu/maverick/pidgin/bug25979

« back to all changes in this revision

Viewing changes to libpurple/protocols/msn/slplink.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:
281
281
                g_list_append(slpmsg->msgs, msg);
282
282
        msn_slplink_send_msg(slplink, msg);
283
283
 
284
 
        if ((slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030) &&
 
284
        if ((slpmsg->flags == 0x20 || slpmsg->flags == 0x1000020 ||
 
285
             slpmsg->flags == 0x1000030) &&
285
286
                (slpmsg->slpcall != NULL))
286
287
        {
287
288
                slpmsg->slpcall->progress = TRUE;
316
317
        else
317
318
        {
318
319
                /* The whole message has been sent */
319
 
                if (slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030)
 
320
                if (slpmsg->flags == 0x20 ||
 
321
                    slpmsg->flags == 0x1000020 || slpmsg->flags == 0x1000030)
320
322
                {
321
323
                        if (slpmsg->slpcall != NULL)
322
324
                        {
362
364
                msg->msnslp_header.ack_size = slpmsg->ack_size;
363
365
                msg->msnslp_header.ack_sub_id = slpmsg->ack_sub_id;
364
366
        }
365
 
        else if (slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030)
 
367
        else if (slpmsg->flags == 0x20 ||
 
368
                 slpmsg->flags == 0x1000020 || slpmsg->flags == 0x1000030)
366
369
        {
367
370
                MsnSlpCall *slpcall;
368
371
                slpcall = slpmsg->slpcall;
398
401
void
399
402
msn_slplink_queue_slpmsg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg)
400
403
{
 
404
        g_return_if_fail(slpmsg != NULL);
 
405
 
401
406
        slpmsg->id = slplink->slp_seq_id++;
402
407
 
403
408
        g_queue_push_tail(slplink->slp_msg_queue, slpmsg);
530
535
 
531
536
                        if (slpmsg->slpcall != NULL)
532
537
                        {
533
 
                                if (slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030)
 
538
                                if (slpmsg->flags == 0x20 ||
 
539
                                    slpmsg->flags == 0x1000020 || slpmsg->flags == 0x1000030)
534
540
                                {
535
541
                                        PurpleXfer *xfer;
536
542
 
593
599
                        memcpy(slpmsg->buffer + offset, data, len);
594
600
        }
595
601
 
596
 
        if ((slpmsg->flags == 0x20 || slpmsg->flags == 0x1000030) &&
 
602
        if ((slpmsg->flags == 0x20 ||
 
603
             slpmsg->flags == 0x1000020 || slpmsg->flags == 0x1000030) &&
597
604
                (slpmsg->slpcall != NULL))
598
605
        {
599
606
                slpmsg->slpcall->progress = TRUE;
628
635
                                msn_directconn_send_handshake(directconn);
629
636
#endif
630
637
                }
631
 
                else if (slpmsg->flags == 0x0 || slpmsg->flags == 0x20 ||
632
 
                                 slpmsg->flags == 0x1000030)
 
638
                else if (slpmsg->flags == 0x00 || slpmsg->flags == 0x1000000 ||  
 
639
                         slpmsg->flags == 0x20 || slpmsg->flags == 0x1000020 ||  
 
640
                         slpmsg->flags == 0x1000030)
633
641
                {
634
642
                        /* Release all the messages and send the ACK */
635
643