Mercurial > pidgin.yaz
changeset 11145:dbc518c453f2
[gaim-migrate @ 13209]
This was suggested in #gaim today, and made sense to me.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Fri, 22 Jul 2005 07:11:08 +0000 |
parents | 923b78741964 |
children | 1c5398ccbeb0 |
files | src/gtkconv.c |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconv.c Fri Jul 22 02:25:29 2005 +0000 +++ b/src/gtkconv.c Fri Jul 22 07:11:08 2005 +0000 @@ -343,6 +343,19 @@ } static GaimCmdRet +clear_command_cb(GaimConversation *conv, + const char *cmd, char **args, char **error, void *data) +{ + GaimGtkConversation *gtkconv = NULL; + + gtkconv = GAIM_GTK_CONVERSATION(conv); + + gtk_imhtml_clear(GTK_IMHTML(gtkconv->imhtml)); + + return GAIM_CMD_STATUS_OK; +} + +static GaimCmdRet help_command_cb(GaimConversation *conv, const char *cmd, char **args, char **error, void *data) { @@ -6178,7 +6191,9 @@ gaim_cmd_register("debug", "w", GAIM_CMD_P_DEFAULT, GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, debug_command_cb, _("debug <option>: Send various debug information to the current conversation."), NULL); - + gaim_cmd_register("clear", "", GAIM_CMD_P_DEFAULT, + GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM, NULL, + clear_command_cb, _("clear: Clears the conversation scrollback."), NULL); gaim_cmd_register("help", "w", GAIM_CMD_P_DEFAULT, GAIM_CMD_FLAG_CHAT | GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_ALLOW_WRONG_ARGS, NULL, help_command_cb, _("help <command>: Help on a specific command."), NULL);