Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
history/notify.h
Go to the documentation of this file.
1/*
2 This file is part of Ansel,
3 Copyright (C) 2026 Aurélien PIERRE.
4
5 Ansel is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 Ansel is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with Ansel. If not, see <http://www.gnu.org/licenses/>.
17*/
18
40#ifndef DT_HISTORY_NOTIFY_H
41#define DT_HISTORY_NOTIFY_H
42
43#include <glib.h>
44
46
48typedef void (*dt_history_message_handler_t)(const char *message);
49
53
56void dt_history_message(const char *format, ...) G_GNUC_PRINTF(1, 2);
57
61void dt_history_toast(const char *format, ...) G_GNUC_PRINTF(1, 2);
62
76
87
90
101void dt_history_changed_images(const GList *imgs);
102
104
105#endif // DT_HISTORY_NOTIFY_H
106
107// clang-format off
108// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
109// vim: shiftwidth=2 expandtab tabstop=2 cindent
110// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
111// clang-format on
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
void(* dt_history_images_changed_handler_t)(const GList *imgs)
The development of these images changed. Was DT_SIGNAL_IMAGE_INFO_CHANGED.
void dt_history_set_toast_handler(dt_history_toast_handler_t handler)
void dt_history_changed_images(const GList *imgs)
void dt_history_changed(const dt_history_change_t what)
Raise it. Internal to this code.
void dt_history_set_images_changed_handler(dt_history_images_changed_handler_t handler)
void dt_history_toast(const char *format,...) G_GNUC_PRINTF(1
void dt_history_message(const char *format,...) G_GNUC_PRINTF(1
Tell the user something. Was dt_control_log(). Internal to this code: the format string is translated...
void dt_history_set_changed_handler(dt_history_changed_handler_t handler)
void(* dt_history_changed_handler_t)(const dt_history_change_t what)
Whoever is displaying any of this should look again.
void typedef void(* dt_history_toast_handler_t)(const char *message)
Same contract, transient acknowledgement flavour. Was dt_toast_log().
G_BEGIN_DECLS typedef void(* dt_history_message_handler_t)(const char *message)
Receives one formatted, already-translated message for the user.
void dt_history_set_message_handler(dt_history_message_handler_t handler)
Install the handler, or NULL to remove it. Messages raised with none installed are dropped.
dt_history_change_t
What changed. Each value stands for one signal this code used to raise itself.
@ DT_HISTORY_CHANGE_DEVELOP
@ DT_HISTORY_CHANGE_TAGS
@ DT_HISTORY_CHANGE_STYLES