| 592 } |
592 } |
| 593 |
593 |
| 594 g_free(filename); |
594 g_free(filename); |
| 595 |
595 |
| 596 gtk_webview_insert_image(GTK_WEBVIEW(toolbar->webview), id); |
596 gtk_webview_insert_image(GTK_WEBVIEW(toolbar->webview), id); |
| 597 purple_imgstore_unref_by_id(id); |
597 /* TODO: do it after passing an image to prpl, not before |
| |
598 * purple_imgstore_unref_by_id(id); |
| |
599 */ |
| 598 } |
600 } |
| 599 |
601 |
| 600 static void |
602 static void |
| 601 insert_image_cb(GtkAction *action, GtkWebViewToolbar *toolbar) |
603 insert_image_cb(GtkAction *action, GtkWebViewToolbar *toolbar) |
| 602 { |
604 { |