Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
thumbnail_notify.h File Reference
#include <glib.h>
#include <stdint.h>
+ Include dependency graph for thumbnail_notify.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* dt_thumbnail_refresh_handler_t) (int32_t imgid, gboolean refresh_filmstrip)
 

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)
 

Typedef Documentation

◆ dt_thumbnail_refresh_handler_t

typedef void(* dt_thumbnail_refresh_handler_t) (int32_t imgid, gboolean refresh_filmstrip)

Definition at line 47 of file thumbnail_notify.h.

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().