| 19 * along with this program; if not, write to the Free Software |
19 * along with this program; if not, write to the Free Software |
| 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 21 */ |
21 */ |
| 22 #include "internal.h" |
22 #include "internal.h" |
| 23 #include "blist.h" |
23 #include "blist.h" |
| |
24 #include "cmds.h" |
| 24 #include "conversation.h" |
25 #include "conversation.h" |
| 25 #include "dbus-maybe.h" |
26 #include "dbus-maybe.h" |
| 26 #include "debug.h" |
27 #include "debug.h" |
| 27 #include "imgstore.h" |
28 #include "imgstore.h" |
| 28 #include "notify.h" |
29 #include "notify.h" |
| 1999 purple_signal_emit(purple_conversations_get_handle(), |
2000 purple_signal_emit(purple_conversations_get_handle(), |
| 2000 "conversation-extended-menu", conv, &menu); |
2001 "conversation-extended-menu", conv, &menu); |
| 2001 return menu; |
2002 return menu; |
| 2002 } |
2003 } |
| 2003 |
2004 |
| |
2005 gboolean |
| |
2006 purple_conversation_do_command(PurpleConversation *conv, const gchar *cmdline, |
| |
2007 const gchar *markup, gchar **error) |
| |
2008 { |
| |
2009 char *mark = (markup && *markup) ? NULL : g_markup_escape_text(cmdline, -1), *err = NULL; |
| |
2010 PurpleCmdStatus status = purple_cmd_do_command(conv, cmdline, mark ? mark : markup, error ? error : &err); |
| |
2011 g_free(mark); |
| |
2012 return (status == PURPLE_CMD_STATUS_OK); |
| |
2013 } |
| 2004 |
2014 |
| 2005 void * |
2015 void * |
| 2006 purple_conversations_get_handle(void) |
2016 purple_conversations_get_handle(void) |
| 2007 { |
2017 { |
| 2008 static int handle; |
2018 static int handle; |