- current_theme = gtk_icon_theme_get_default ();
- icon_info = gtk_icon_theme_lookup_icon (current_theme, "qgn_indi_messagin_nullcmas", 26,
- GTK_ICON_LOOKUP_NO_SVG);
- if (icon_info != NULL) {
- const gchar *filename;
- TnyStream *vfs_stream;
- GnomeVFSHandle *handle;
- filename = gtk_icon_info_get_filename (icon_info);
- gnome_vfs_open (&handle, filename, GNOME_VFS_OPEN_READ);
- vfs_stream = tny_vfs_stream_new (handle);
- while (tny_stream_write_to_stream (vfs_stream, stream) > 0);
- tny_stream_close (vfs_stream);
- g_object_unref (vfs_stream);
- gtk_icon_info_free (icon_info);
- }