comparison src/protocols/msn/msn.c @ 12595:3169cd6727ad

[gaim-migrate @ 14925] I've been meaning to spend the time to commit these changes separately, but it's been a couple days without me finding the time... 1. Allow the creation of GaimStatusTypes by passing NULL for the name and/or id. The core uses the default name and/or id. This eliminates quite a bit of duplication in the prpls. 2. Make statuses more consistent. For example, in some prpls, "Busy" was descended from the UNAVAILABLE primitive and on others it was a case of AWAY. Another example... "On Vacation" is definitely an EXTENDED_AWAY not an AWAY. 3. Rename some pixmaps to elminate some special cases. The names of the pixmaps should now match the primitive default IDs. 4. Rename the HIDDEN primitive to INVISIBLE, since we seem to be using that term everywhere. In conjunction with #1, more duplication was eliminated. 5. Add a MOBILE status primitive. It's not used now. It'll be needed in the (hopefully not-too-distant) future, so I'm planning ahead. 6. Shrink the status select for small blist folks. Now if someone can get rid of that stupid extra padding, we'll be set (well, after we deal with imhtml space issues). I've fought with this for many many hours over several days and I can't get it. It's clear that the combo box is requesting more space than is really necessary, but I don't know why. This is really my first go at anything significant status-related. Everyone should check their favorite prpls carefully to make sure I didn't break anything. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 21 Dec 2005 08:24:17 +0000
parents 12db50600de5
children e856f985a0b9
comparison
equal deleted inserted replaced
12594:3d34460ecfd6 12595:3169cd6727ad
572 { 572 {
573 GaimStatusType *status; 573 GaimStatusType *status;
574 GList *types = NULL; 574 GList *types = NULL;
575 575
576 status = gaim_status_type_new_full(GAIM_STATUS_OFFLINE, 576 status = gaim_status_type_new_full(GAIM_STATUS_OFFLINE,
577 "offline", _("Offline"), FALSE, TRUE, FALSE); 577 NULL, NULL, FALSE, TRUE, FALSE);
578 types = g_list_append(types, status); 578 types = g_list_append(types, status);
579 579
580 status = gaim_status_type_new_full(GAIM_STATUS_AVAILABLE, 580 status = gaim_status_type_new_full(GAIM_STATUS_AVAILABLE,
581 "available", _("Available"), FALSE, TRUE, FALSE); 581 NULL, NULL, FALSE, TRUE, FALSE);
582 types = g_list_append(types, status); 582 types = g_list_append(types, status);
583 583
584 status = gaim_status_type_new_full(GAIM_STATUS_AWAY, "away", 584 status = gaim_status_type_new_full(GAIM_STATUS_AWAY,
585 _("Away"), FALSE, TRUE, FALSE); 585 NULL, NULL, FALSE, TRUE, FALSE);
586 types = g_list_append(types, status); 586 types = g_list_append(types, status);
587 587
588 status = gaim_status_type_new_full(GAIM_STATUS_AWAY, "brb", 588 status = gaim_status_type_new_full(GAIM_STATUS_AWAY,
589 _("Be Right Back"), FALSE, TRUE, FALSE); 589 "brb", _("Be Right Back"), FALSE, TRUE, FALSE);
590 types = g_list_append(types, status); 590 types = g_list_append(types, status);
591 591
592 status = gaim_status_type_new_full(GAIM_STATUS_AWAY, "busy", 592 status = gaim_status_type_new_full(GAIM_STATUS_UNAVAILABLE,
593 _("Busy"), FALSE, TRUE, FALSE); 593 "busy", _("Busy"), FALSE, TRUE, FALSE);
594 types = g_list_append(types, status); 594 types = g_list_append(types, status);
595 595
596 status = gaim_status_type_new_full(GAIM_STATUS_AWAY, "phone", 596 status = gaim_status_type_new_full(GAIM_STATUS_UNAVAILABLE,
597 _("On the Phone"), FALSE, TRUE, FALSE); 597 "phone", _("On the Phone"), FALSE, TRUE, FALSE);
598 types = g_list_append(types, status); 598 types = g_list_append(types, status);
599 599
600 status = gaim_status_type_new_full(GAIM_STATUS_AWAY, "lunch", 600 status = gaim_status_type_new_full(GAIM_STATUS_AWAY,
601 _("Out to Lunch"), FALSE, TRUE, FALSE); 601 "lunch", _("Out to Lunch"), FALSE, TRUE, FALSE);
602 types = g_list_append(types, status); 602 types = g_list_append(types, status);
603 603
604 status = gaim_status_type_new_full(GAIM_STATUS_HIDDEN, "invisible", 604 status = gaim_status_type_new_full(GAIM_STATUS_INVISIBLE,
605 _("Hidden"), FALSE, TRUE, FALSE); 605 NULL, NULL, FALSE, TRUE, FALSE);
606 types = g_list_append(types, status); 606 types = g_list_append(types, status);
607 607
608 return types; 608 return types;
609 } 609 }
610 610