pidgin/gtkwebview.c

changeset 35322
9f6d0e63e80a
parent 35194
9a0203562da5
child 35454
cf2a24d01503
equal deleted inserted replaced
35321:3fc5097c876d 35322:9f6d0e63e80a
291 pos = strchr(t->values->str, *amp); 291 pos = strchr(t->values->str, *amp);
292 } 292 }
293 else if (*x == '<') /* Because we're all WYSIWYG now, a '<' char should 293 else if (*x == '<') /* Because we're all WYSIWYG now, a '<' char should
294 * only appear as the start of a tag. Perhaps a 294 * only appear as the start of a tag. Perhaps a
295 * safer (but costlier) check would be to call 295 * safer (but costlier) check would be to call
296 * gtk_imhtml_is_tag on it */ 296 * gtk_webview_is_tag on it */
297 break; 297 break;
298 else { 298 else {
299 alen = 1; 299 alen = 1;
300 pos = strchr(t->values->str, *x); 300 pos = strchr(t->values->str, *x);
301 } 301 }
505 GList *wids; 505 GList *wids;
506 gtk_widget_show(icon); 506 gtk_widget_show(icon);
507 507
508 wids = gtk_text_child_anchor_get_widgets(anchor); 508 wids = gtk_text_child_anchor_get_widgets(anchor);
509 509
510 #if 0
510 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_plaintext", 511 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_plaintext",
511 purple_unescape_html(smiley->smile), g_free); 512 purple_unescape_html(smiley->smile), g_free);
512 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext", 513 g_object_set_data_full(G_OBJECT(anchor), "gtkimhtml_htmltext",
513 g_strdup(smiley->smile), g_free); 514 g_strdup(smiley->smile), g_free);
515 #endif
514 516
515 if (smiley->webview) { 517 if (smiley->webview) {
516 if (wids) { 518 if (wids) {
517 GList *children = gtk_container_get_children(GTK_CONTAINER(wids->data)); 519 GList *children = gtk_container_get_children(GTK_CONTAINER(wids->data));
518 g_list_foreach(children, (GFunc)gtk_widget_destroy, NULL); 520 g_list_foreach(children, (GFunc)gtk_widget_destroy, NULL);

mercurial