Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dev_history_gui.h File Reference

The GTK half of the history engine, following the blend.c/blend_gui.c pattern. More...

#include <glib.h>
+ Include dependency graph for dev_history_gui.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

G_BEGIN_DECLS void dt_dev_history_gui_init (void)
 Install the history engine's GUI handlers. Called once from dt_init() beside the other handler installs – safe under ansel-cli too, because every handler fires only for a dev with a focused GUI module, which a headless dev never has.
 

Detailed Description

The GTK half of the history engine, following the blend.c/blend_gui.c pattern.

dev_history.c is the history ENGINE – item lifecycle, commit, replay, DB read/write, all under history_mutex discipline. What lives here is the part that touches widgets: the handlers the engine calls when presentation state rides along with an operation (undo records restoring the mask-edit view), installed once at GUI startup. With nothing installed – ansel-cli, a unit test – the engine skips the calls, which is what headless means.

Definition in file dev_history_gui.h.

Function Documentation

◆ dt_dev_history_gui_init()

G_BEGIN_DECLS void dt_dev_history_gui_init ( void  )

Install the history engine's GUI handlers. Called once from dt_init() beside the other handler installs – safe under ansel-cli too, because every handler fires only for a dev with a focused GUI module, which a headless dev never has.

Definition at line 304 of file dev_history_gui.c.

References _commit_gui(), _undo_restore_gui(), dt_dev_history_set_commit_gui_handler(), and dt_dev_history_set_undo_restore_gui_handler().

Referenced by dt_init().