Mercurial > pidgin
comparison libpurple/plugins/offlinemsg.c @ 32749:5b79a5b72689
The Offline Message Emulation plugin now adds a note that the message
was an offline message. (Flavius Anton) (fixes #2497)
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 31 Mar 2012 21:28:53 +0000 |
parents | a8cc50c2279f |
children |
comparison
equal
deleted
inserted
replaced
32747:5ca6bba28a04 | 32749:5b79a5b72689 |
---|---|
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 " |