Documentation: Use G_SOURCE_CONTINUE and G_SOURCE_REMOVE
[geeqie.git] / src / histogram.cc
index 395527d..3832089 100644 (file)
@@ -204,7 +204,7 @@ const HistMap *histmap_get(FileData *fd)
 
 static gboolean histmap_idle_cb(gpointer data)
 {
-       FileData *fd = (FileData *)data;
+       FileData *fd = static_cast<FileData *>(data);
        if (histmap_read(fd->histmap, FALSE))
                {
                /* finished */
@@ -212,9 +212,9 @@ static gboolean histmap_idle_cb(gpointer data)
                fd->histmap->pixbuf = NULL;
                fd->histmap->idle_id = 0;
                file_data_send_notification(fd, NOTIFY_HISTMAP);
-               return FALSE;
+               return G_SOURCE_REMOVE;
                }
-       return TRUE;
+       return G_SOURCE_CONTINUE;
 }
 
 gboolean histmap_start_idle(FileData *fd)