Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
notify.c File Reference
#include "history/notify.h"
#include "system/mem_alloc.h"
#include <stdarg.h>
+ Include dependency graph for history/notify.c:

Go to the source code of this file.

Functions

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.
 
void dt_history_message (const char *format,...)
 
void dt_history_set_toast_handler (dt_history_toast_handler_t handler)
 
void dt_history_toast (const char *format,...)
 
void dt_history_set_changed_handler (dt_history_changed_handler_t handler)
 
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_changed_images (const GList *imgs)
 

Variables

static dt_history_message_handler_t _message_handler = NULL
 
static dt_history_changed_handler_t _changed_handler = NULL
 
static dt_history_images_changed_handler_t _images_changed_handler = NULL
 
static dt_history_toast_handler_t _toast_handler = NULL
 

Function Documentation

◆ dt_history_changed()

◆ dt_history_changed_images()

void dt_history_changed_images ( const GList imgs)

Definition at line 93 of file history/notify.c.

References _images_changed_handler, and L.

Referenced by _history_action_finalize_list().

◆ dt_history_message()

◆ dt_history_set_changed_handler()

void dt_history_set_changed_handler ( dt_history_changed_handler_t  handler)

Definition at line 77 of file history/notify.c.

References _changed_handler, and L.

Referenced by dt_init().

◆ dt_history_set_images_changed_handler()

void dt_history_set_images_changed_handler ( dt_history_images_changed_handler_t  handler)

Definition at line 88 of file history/notify.c.

References _images_changed_handler, and L.

Referenced by dt_init().

◆ dt_history_set_message_handler()

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.

Definition at line 31 of file history/notify.c.

References _message_handler, and L.

Referenced by dt_init().

◆ dt_history_set_toast_handler()

void dt_history_set_toast_handler ( dt_history_toast_handler_t  handler)

Definition at line 55 of file history/notify.c.

References _toast_handler, and L.

Referenced by dt_init().

◆ dt_history_toast()

void dt_history_toast ( const char *  format,
  ... 
)

Definition at line 60 of file history/notify.c.

References _toast_handler, dt_free, dt_history_toast_handler_t, and L.

Referenced by dt_dev_history_notify_change().

Variable Documentation

◆ _changed_handler

dt_history_changed_handler_t _changed_handler = NULL
static

Definition at line 28 of file history/notify.c.

Referenced by dt_history_changed(), and dt_history_set_changed_handler().

◆ _images_changed_handler

dt_history_images_changed_handler_t _images_changed_handler = NULL
static

◆ _message_handler

dt_history_message_handler_t _message_handler = NULL
static

Definition at line 27 of file history/notify.c.

Referenced by dt_history_message(), and dt_history_set_message_handler().

◆ _toast_handler

dt_history_toast_handler_t _toast_handler = NULL
static

Definition at line 53 of file history/notify.c.

Referenced by dt_history_set_toast_handler(), and dt_history_toast().