# HG changeset patch # User masca@cpw.pidgin.im # Date 1315371648 0 # Node ID 91d098444b91ddec363e2bbe517166288034e8a3 # Parent 0e94b08153492a11068c9a54055f51040c740bd2 Get rid of a wrapper function. diff -r 0e94b0815349 -r 91d098444b91 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Wed Sep 07 04:57:34 2011 +0000 +++ b/pidgin/gtkconv.c Wed Sep 07 05:00:48 2011 +0000 @@ -424,22 +424,15 @@ return PURPLE_CMD_RET_OK; } -static void clear_conversation_scrollback(PurpleConversation *conv) +static void clear_conversation_scrollback_cb(PurpleConversation *conv, + void *data) { PidginConversation *gtkconv = NULL; - GList *iter; gtkconv = PIDGIN_CONVERSATION(conv); - webkit_web_view_load_html_string (WEBKIT_WEB_VIEW (gtkconv->webview), "", ""); -} - - -static void clear_conversation_scrollback_cb(PurpleConversation *conv, - void *data) -{ if (PIDGIN_CONVERSATION(conv)) - clear_conversation_scrollback(conv); + webkit_web_view_load_html_string (WEBKIT_WEB_VIEW (gtkconv->webview), "", ""); } static PurpleCmdRet clear_command_cb(PurpleConversation *conv,