comparison src/status.c @ 11654:bf6ba37db13b

[gaim-migrate @ 13938] Some changes to the gtkstatusbar. I took out all the saved statuses. They should be replaced by a list of the most recently used saved+transient statuses. I also removed the /core/away/default_message preference and replaced it with /core/status/current and /core/status/idleaway. These new prefs store the title of the saved status that is being used and should be used when you become idle, respectively. Some bits still need some work, but I think this is moving in the right direction. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 13 Oct 2005 02:50:13 +0000
parents 3a05b53a589e
children a647f92e1d57
comparison
equal deleted inserted replaced
11653:c7aaac1fb252 11654:bf6ba37db13b
594 */ 594 */
595 void 595 void
596 gaim_status_destroy(GaimStatus *status) 596 gaim_status_destroy(GaimStatus *status)
597 { 597 {
598 g_return_if_fail(status != NULL); 598 g_return_if_fail(status != NULL);
599
600 /* TODO: Don't do this is if the status is exclusive */
601 /* XXX: why do this at all?
602 gaim_status_set_active(status, FALSE); */
603 599
604 g_hash_table_destroy(status->attr_values); 600 g_hash_table_destroy(status->attr_values);
605 601
606 GAIM_DBUS_UNREGISTER_POINTER(status); 602 GAIM_DBUS_UNREGISTER_POINTER(status);
607 g_free(status); 603 g_free(status);
1698 void *handle = gaim_status_get_handle; 1694 void *handle = gaim_status_get_handle;
1699 1695
1700 gaim_prefs_add_none("/core/status"); 1696 gaim_prefs_add_none("/core/status");
1701 gaim_prefs_add_none("/core/status/scores"); 1697 gaim_prefs_add_none("/core/status/scores");
1702 1698
1699 gaim_prefs_add_string("/core/status/current", _("Default"));
1700 gaim_prefs_add_string("/core/status/idleaway", _("Default auto-away"));
1701
1703 gaim_prefs_add_int("/core/status/scores/offline", 1702 gaim_prefs_add_int("/core/status/scores/offline",
1704 primitive_scores[GAIM_STATUS_OFFLINE]); 1703 primitive_scores[GAIM_STATUS_OFFLINE]);
1705 gaim_prefs_add_int("/core/status/scores/available", 1704 gaim_prefs_add_int("/core/status/scores/available",
1706 primitive_scores[GAIM_STATUS_AVAILABLE]); 1705 primitive_scores[GAIM_STATUS_AVAILABLE]);
1707 gaim_prefs_add_int("/core/status/scores/hidden", 1706 gaim_prefs_add_int("/core/status/scores/hidden",