Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
thumbnail_notify.c File Reference
+ Include dependency graph for thumbnail_notify.c:

Go to the source code of this file.

Functions

void dt_thumbnail_notify_set_handler (dt_thumbnail_refresh_handler_t handler)
 
void dt_thumbnail_notify_image_changed (int32_t imgid, gboolean refresh_filmstrip)
 

Variables

static dt_thumbnail_refresh_handler_t _handler = NULL
 

Function Documentation

◆ dt_thumbnail_notify_image_changed()

void dt_thumbnail_notify_image_changed ( int32_t  imgid,
gboolean  refresh_filmstrip 
)

Announce that imgid's rendered thumbnail no longer matches the image.

refresh_filmstrip is best-effort and must be FALSE on darkroom write paths: refreshing the filmstrip spawns an export thread that competes with the realtime darkroom main preview. Lighttable operations pass TRUE.

Safe to call with no handler registered.

Definition at line 29 of file thumbnail_notify.c.

References _handler, and L.

Referenced by dt_history_delete_on_image_ext(), and dt_image_history_changed().

◆ dt_thumbnail_notify_set_handler()

void dt_thumbnail_notify_set_handler ( dt_thumbnail_refresh_handler_t  handler)

Install the handler invoked whenever an image's thumbnail goes stale. Pass NULL to remove it. Called by the GUI at startup; there is exactly one handler.

Definition at line 24 of file thumbnail_notify.c.

References _handler, and L.

Referenced by dt_gui_gtk_init().

Variable Documentation

◆ _handler