| 337 |
337 |
| 338 static void |
338 static void |
| 339 conversation_entry_clear(PidginConversation *gtkconv) |
339 conversation_entry_clear(PidginConversation *gtkconv) |
| 340 { |
340 { |
| 341 GtkWebView *webview = GTK_WEBVIEW(gtkconv->entry); |
341 GtkWebView *webview = GTK_WEBVIEW(gtkconv->entry); |
| 342 gtk_webview_load_html_string(webview, ""); |
342 |
| |
343 //XXX: hotfix for not focused entry after sending a message |
| |
344 //gtk_webview_load_html_string(webview, ""); |
| |
345 gtk_webview_load_html_string_with_selection(webview, "<div id='caret'></div>"); |
| |
346 |
| 343 #if 0 |
347 #if 0 |
| 344 /* TODO WebKit */ |
348 /* TODO WebKit */ |
| 345 gtk_source_undo_manager_begin_not_undoable_action(webview->undo_manager); |
349 gtk_source_undo_manager_begin_not_undoable_action(webview->undo_manager); |
| 346 gtk_webview_clear(webview); |
350 gtk_webview_clear(webview); |
| 347 gtk_source_undo_manager_end_not_undoable_action(webview->undo_manager); |
351 gtk_source_undo_manager_end_not_undoable_action(webview->undo_manager); |