comparison src/status.c @ 11975:aadf61b30056

[gaim-migrate @ 14268] 1. Fix the I'dle Mak'er plugin 2. Show a friendly "none of your accounts are idle" message in the I'dle Mak'er plugin when attempting to unidle your accounts and none of them are idle 3. HIGify the capitalization of the I'dle Mak'er menu items 4. i18n system log "signed on" and "signed off" messages 5. Log when your accounts become idle and unidle 6. Add default saved statuses if the user has no saved statuses 7. Removed serv_set_idle(). Use gaim_presence_set_idle() instead. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 04 Nov 2005 19:15:05 +0000
parents 0fab529c01fc
children 5a63ea24ac83
comparison
equal deleted inserted replaced
11974:2ff2965895f3 11975:aadf61b30056
1323 old_idle, idle); 1323 old_idle, idle);
1324 } 1324 }
1325 } 1325 }
1326 else if(gaim_presence_get_context(presence) == GAIM_PRESENCE_CONTEXT_ACCOUNT) 1326 else if(gaim_presence_get_context(presence) == GAIM_PRESENCE_CONTEXT_ACCOUNT)
1327 { 1327 {
1328 GaimConnection *gc = 1328 GaimAccount *account;
1329 gaim_account_get_connection(gaim_presence_get_account(presence)); 1329 GaimLog *log;
1330 char *msg;
1331 GaimConnection *gc;
1330 GaimPluginProtocolInfo *prpl_info = NULL; 1332 GaimPluginProtocolInfo *prpl_info = NULL;
1333
1334 account = gaim_presence_get_account(presence);
1335 log = gaim_account_get_log(account);
1336
1337 if (idle)
1338 msg = g_strdup_printf(_("+++ %s became idle"), gaim_account_get_username(account));
1339 else
1340 msg = g_strdup_printf(_("+++ %s became unidle"), gaim_account_get_username(account));
1341 gaim_log_write(log, GAIM_MESSAGE_SYSTEM,
1342 gaim_account_get_username(account),
1343 idle_time, msg);
1344 g_free(msg);
1345
1346 gc = gaim_account_get_connection(account);
1331 1347
1332 if (gc != NULL && gc->prpl != NULL) 1348 if (gc != NULL && gc->prpl != NULL)
1333 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); 1349 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
1334 1350
1335 if (prpl_info && g_list_find(gaim_connections_get_all(), gc) && 1351 if (prpl_info && g_list_find(gaim_connections_get_all(), gc) &&
1655 1671
1656 gaim_prefs_add_none("/core/status"); 1672 gaim_prefs_add_none("/core/status");
1657 gaim_prefs_add_none("/core/status/scores"); 1673 gaim_prefs_add_none("/core/status/scores");
1658 1674
1659 gaim_prefs_add_string("/core/status/current", _("Default")); 1675 gaim_prefs_add_string("/core/status/current", _("Default"));
1660 gaim_prefs_add_string("/core/status/idleaway", _("Default auto-away")); 1676 gaim_prefs_add_string("/core/status/idleaway", _("Default when idle"));
1661 1677
1662 gaim_prefs_add_int("/core/status/scores/offline", 1678 gaim_prefs_add_int("/core/status/scores/offline",
1663 primitive_scores[GAIM_STATUS_OFFLINE]); 1679 primitive_scores[GAIM_STATUS_OFFLINE]);
1664 gaim_prefs_add_int("/core/status/scores/available", 1680 gaim_prefs_add_int("/core/status/scores/available",
1665 primitive_scores[GAIM_STATUS_AVAILABLE]); 1681 primitive_scores[GAIM_STATUS_AVAILABLE]);