pidgin/gtkconv.c

changeset 35833
a7bfc2479cbd
parent 35816
d81a6ba26cfa
child 35838
64f331a1eaa0
equal deleted inserted replaced
35832:3ade2f38ec3a 35833:a7bfc2479cbd
639 639
640 if (pidgin_webview_is_empty(PIDGIN_WEBVIEW(gtkconv->entry))) 640 if (pidgin_webview_is_empty(PIDGIN_WEBVIEW(gtkconv->entry)))
641 return; 641 return;
642 642
643 buf = pidgin_webview_get_body_html(PIDGIN_WEBVIEW(gtkconv->entry)); 643 buf = pidgin_webview_get_body_html(PIDGIN_WEBVIEW(gtkconv->entry));
644 g_return_if_fail(buf != NULL);
644 645
645 gtk_widget_grab_focus(gtkconv->entry); 646 gtk_widget_grab_focus(gtkconv->entry);
646 647
647 purple_idle_touch(); 648 purple_idle_touch();
648 649
649 #if 0
650 /* TODO WebKit: Image stuff... */
651 /* XXX: is there a better way to tell if the message has images? */ 650 /* XXX: is there a better way to tell if the message has images? */
652 if (PIDGIN_WEBVIEW(gtkconv->entry)->im_images != NULL) 651 if (strstr(buf, "<img ") != NULL)
653 flags |= PURPLE_MESSAGE_IMAGES; 652 flags |= PURPLE_MESSAGE_IMAGES;
654 #endif
655 653
656 gc = NULL/*purple_account_get_connection(account)*/; 654 gc = NULL/*purple_account_get_connection(account)*/;
657 if (gc && (purple_conversation_get_features(conv) & PURPLE_CONNECTION_FLAG_NO_NEWLINES)) { 655 if (gc && (purple_conversation_get_features(conv) & PURPLE_CONNECTION_FLAG_NO_NEWLINES)) {
658 #if 0 656 #if 0
659 /* TODO WebKit */ 657 /* TODO WebKit */

mercurial