pidgin/gtkimhtml.c

branch
soc.2008.masterpassword
changeset 34108
7a07b6857540
parent 33661
2ebcb105e606
child 33683
bf243e3394a7
equal deleted inserted replaced
34107:efe6019c9e91 34108:7a07b6857540
2521 2521
2522 2522
2523 [19:58] <Robot101> marv: images go into the imgstore, a refcounted... well.. hash. :) 2523 [19:58] <Robot101> marv: images go into the imgstore, a refcounted... well.. hash. :)
2524 [19:59] <KingAnt> marv: I think the image tag used by the core is something like <img id="#"/> 2524 [19:59] <KingAnt> marv: I think the image tag used by the core is something like <img id="#"/>
2525 [19:59] Ro0tSiEgE robert42 RobFlynn Robot101 ross22 roz 2525 [19:59] Ro0tSiEgE robert42 RobFlynn Robot101 ross22 roz
2526 [20:00] <KingAnt> marv: Where the ID is the what is returned when you add the image to the imgstore using purple_imgstore_add 2526 [20:00] <KingAnt> marv: Where the ID is the what is returned when you add the image to the imgstore using purple_imgstore_new
2527 [20:00] <marv> Robot101: so how does the image get passed to serv_got_im() and serv_send_im()? just as the <img id="#" and then the prpl looks it up from the store? 2527 [20:00] <marv> Robot101: so how does the image get passed to serv_got_im() and serv_send_im()? just as the <img id="#" and then the prpl looks it up from the store?
2528 [20:00] <KingAnt> marv: Right 2528 [20:00] <KingAnt> marv: Right
2529 [20:00] <marv> alright 2529 [20:00] <marv> alright
2530 2530
2531 Here's my plan with IMImages. make gtk_imhtml_[append|insert]_text_with_images instead just 2531 Here's my plan with IMImages. make gtk_imhtml_[append|insert]_text_with_images instead just
3961 GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter); 3961 GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor(imhtml->text_buffer, iter);
3962 GtkIMHtmlImageSave *save; 3962 GtkIMHtmlImageSave *save;
3963 3963
3964 gtk_container_add(GTK_CONTAINER(box), GTK_WIDGET(image->image)); 3964 gtk_container_add(GTK_CONTAINER(box), GTK_WIDGET(image->image));
3965 3965
3966 if(!gtk_check_version(2, 4, 0)) 3966 g_object_set(G_OBJECT(box), "visible-window", FALSE, NULL);
3967 g_object_set(G_OBJECT(box), "visible-window", FALSE, NULL);
3968 3967
3969 gtk_widget_show(GTK_WIDGET(image->image)); 3968 gtk_widget_show(GTK_WIDGET(image->image));
3970 gtk_widget_show(box); 3969 gtk_widget_show(box);
3971 3970
3972 tag = g_strdup_printf("<IMG ID=\"%d\">", image->id); 3971 tag = g_strdup_printf("<IMG ID=\"%d\">", image->id);

mercurial