static void thumb_loader_percent_cb(ImageLoader *UNUSED(il), gdouble percent, gpointer data)
{
- ThumbLoader *tl = (ThumbLoader *)data;
+ ThumbLoader *tl = static_cast<ThumbLoader *>(data);
tl->percent_done = percent;
static void thumb_loader_done_cb(ImageLoader *il, gpointer data)
{
- ThumbLoader *tl = (ThumbLoader *)data;
+ ThumbLoader *tl = static_cast<ThumbLoader *>(data);
GdkPixbuf *pixbuf;
gint pw, ph;
gint save;
static void thumb_loader_error_cb(ImageLoader *il, gpointer data)
{
- ThumbLoader *tl = (ThumbLoader *)data;
+ ThumbLoader *tl = static_cast<ThumbLoader *>(data);
/* if at least some of the image is available, go to done_cb */
if (image_loader_get_pixbuf(tl->il) != NULL)
static gboolean thumb_loader_done_delay_cb(gpointer data)
{
- ThumbLoader *tl = (ThumbLoader *)data;
+ ThumbLoader *tl = static_cast<ThumbLoader *>(data);
tl->idle_done_id = 0;
if (tl->func_done) tl->func_done(tl, tl->data);
- return FALSE;
+ return G_SOURCE_REMOVE;
}
static void thumb_loader_delay_done(ThumbLoader *tl)