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

Go to the source code of this file.

Functions

gboolean dt_database_show_error (void)
 
void dt_database_gui_register_handlers (void)
 

Function Documentation

◆ dt_database_gui_register_handlers()

void dt_database_gui_register_handlers ( void  )

Register the handler database/database.c puts its prompts through. Must be called BEFORE dt_database_open(), so darktable.c does it – dt_gui_gtk_init() runs too late. See dt_database_set_prompt_handler().

Definition at line 266 of file database_gui.c.

References _database_prompt(), and dt_database_set_prompt_handler().

Referenced by dt_init().

◆ dt_database_show_error()

gboolean dt_database_show_error ( void  )

Report why the database would not open, and offer to quit, retry, or delete the lock files. Consumes the database's pending error.

Returns TRUE if the failure is fatal, FALSE if the caller should try opening again – the caller's init loop in darktable.c closes and re-runs dt_database_open() on FALSE.

Postponed until after dbus has been tried, so another running instance gets the chance to answer first.

Definition at line 35 of file database_gui.c.

References dt_database_delete_lock_files(), dt_database_error_free(), dt_database_take_error(), dt_free, dt_gui_show_standalone_three_choice_dialog(), dt_gui_show_standalone_yes_no_dialog(), error(), FALSE, IS_NULL_PTR, L, and TRUE.

Referenced by dt_init().