![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
common/image.c states that an image entered the library; whoever is showing the collection decides what that looks like.
More...
#include <glib.h>#include <inttypes.h>
Include dependency graph for image_notify.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| void | dt_image_notify_set_imported_handler (dt_image_imported_handler_t handler) |
| Install the handler, or NULL to remove it. | |
| void | dt_image_notify_imported (const int32_t imgid) |
| Raise it. Internal to common/image.c. | |
Variables | |
| G_BEGIN_DECLS typedef void(* | dt_image_imported_handler_t )(const int32_t imgid) |
| Receives the id of one freshly imported image. Raised on the thread that did the import; a handler that touches widgets gets itself onto the GUI thread, exactly as the signal emission it replaces did. | |
common/image.c states that an image entered the library; whoever is showing the collection decides what that looks like.
The import path used to raise DT_SIGNAL_IMAGE_IMPORT itself — a call into control/ (layer 3) from a layer-1 file that had no other reason to know the control loop exists, and whose include line was missing anyway: the symbols arrived through develop/imageop.h → control/settings.h → control/signal.h, a supply line three headers long. Same inversion as metadata/notify.h and history/notify.h; same shape as common/thumbnail_notify.h next door. With no handler installed — ansel-cli, a unit test — the fact is dropped, which is correct for both.
Definition in file image_notify.h.
| void dt_image_notify_imported | ( | const int32_t | imgid | ) |
Raise it. Internal to common/image.c.
Definition at line 30 of file image_notify.c.
References _imported_handler, and dt_image_imported_handler_t.
Referenced by _image_import_internal().
| void dt_image_notify_set_imported_handler | ( | dt_image_imported_handler_t | handler | ) |
Install the handler, or NULL to remove it.
Definition at line 25 of file image_notify.c.
References _imported_handler.
Referenced by dt_init().
| G_BEGIN_DECLS typedef void(* dt_image_imported_handler_t) (const int32_t imgid) | ( | const int32_t | imgid | ) |
Receives the id of one freshly imported image. Raised on the thread that did the import; a handler that touches widgets gets itself onto the GUI thread, exactly as the signal emission it replaces did.
Definition at line 44 of file image_notify.h.
Referenced by dt_image_notify_imported().