Mercurial > pidgin
comparison libpurple/plugins/offlinemsg.c @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
| author | Elliott Sales de Andrade <qulogic@pidgin.im> |
|---|---|
| date | Sat, 02 Jun 2012 02:30:49 +0000 |
| parents | 5b79a5b72689 |
| children |
comparison
equal
deleted
inserted
replaced
| 32818:01ff09d4a463 | 32819:2c6510167895 |
|---|---|
| 78 { | 78 { |
| 79 PurplePounce *pounce; | 79 PurplePounce *pounce; |
| 80 PurplePounceEvent event; | 80 PurplePounceEvent event; |
| 81 PurplePounceOption option; | 81 PurplePounceOption option; |
| 82 PurpleConversation *conv; | 82 PurpleConversation *conv; |
| 83 char *temp; | |
| 83 | 84 |
| 84 event = PURPLE_POUNCE_SIGNON; | 85 event = PURPLE_POUNCE_SIGNON; |
| 85 option = PURPLE_POUNCE_OPTION_NONE; | 86 option = PURPLE_POUNCE_OPTION_NONE; |
| 86 | 87 |
| 87 pounce = purple_pounce_new(purple_core_get_ui(), offline->account, offline->who, | 88 pounce = purple_pounce_new(purple_core_get_ui(), offline->account, offline->who, |
| 88 event, option); | 89 event, option); |
| 89 | 90 |
| 90 purple_pounce_action_set_enabled(pounce, "send-message", TRUE); | 91 purple_pounce_action_set_enabled(pounce, "send-message", TRUE); |
| 91 purple_pounce_action_set_attribute(pounce, "send-message", "message", offline->message); | 92 |
| 93 temp = g_strdup_printf("(%s) %s", _("Offline message"), | |
| 94 offline->message); | |
| 95 purple_pounce_action_set_attribute(pounce, "send-message", "message", | |
| 96 temp); | |
| 97 g_free(temp); | |
| 92 | 98 |
| 93 conv = offline->conv; | 99 conv = offline->conv; |
| 94 if (!purple_conversation_get_data(conv, "plugin_pack:offlinemsg")) | 100 if (!purple_conversation_get_data(conv, "plugin_pack:offlinemsg")) |
| 95 purple_conversation_write(conv, NULL, _("The rest of the messages will be saved " | 101 purple_conversation_write(conv, NULL, _("The rest of the messages will be saved " |
| 96 "as pounces. You can edit/delete the pounce from the `Buddy " | 102 "as pounces. You can edit/delete the pounce from the `Buddy " |
