Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
splash.c File Reference
#include "gui/splash.h"
#include "common/darktable.h"
#include "common/file_location.h"
#include "common/l10n.h"
#include "gui/gtk.h"
#include <gtk/gtk.h>
#include <math.h>
#include <pango/pangocairo.h>
#include <stdlib.h>
+ Include dependency graph for splash.c:

Data Structures

struct  dt_splash_t
 
struct  dt_splash_slide_t
 

Typedefs

typedef struct dt_splash_t dt_splash_t
 
typedef struct dt_splash_slide_t dt_splash_slide_t
 

Functions

static gboolean _splash_env_is_truthy (const char *value)
 
static gboolean _splash_is_disabled (void)
 
void dt_gui_splash_set_transient_for (GtkWidget *parent)
 
static void _splash_force_show (void)
 
static void _splash_clear_slide_cache (void)
 
static void _splash_add_css (const char *data)
 
static gchar * _splash_build_data_path (const char *subpath)
 
static gchar * _splash_build_author_list (guint max_names)
 
static GtkWidget_splash_shadow_label_new (const gchar *text, const gchar *name, const gchar *shadow_name, GtkWidget **out_main)
 
static void _splash_shadow_label_set_text (GtkWidget *label, const gchar *text)
 
static dt_splash_slide_t_splash_slide_new (const gchar *path, const gchar *author)
 
static void _splash_slide_free (gpointer data)
 
static gboolean _splash_draw (GtkWidget *widget, cairo_t *cr, gpointer user_data)
 
static gboolean _splash_slide_advance (gpointer user_data)
 
static void _splash_load_authors (void)
 
static void _splash_load_slides (void)
 
static void _splash_update_message (const gchar *message)
 
static gchar * _splash_capitalize_name (const char *name)
 
static gboolean _splash_logo_set_from_path (GtkWidget *logo, const char *path, int target_size, int scale_factor)
 
static GtkWidget_splash_create_logo (int target_size, int scale_factor, gchar **out_path)
 
static void _splash_update_logo_for_scale (void)
 
static void _splash_scale_factor_changed (GObject *object, GParamSpec *pspec, gpointer user_data)
 
void dt_gui_splash_init (void)
 
void dt_gui_splash_update (const char *message)
 
void dt_gui_splash_updatef (const char *format,...)
 
void dt_gui_splash_close (void)
 

Variables

static dt_splash_tsplash = NULL
 

Typedef Documentation

◆ dt_splash_slide_t

◆ dt_splash_t

typedef struct dt_splash_t dt_splash_t

Function Documentation

◆ _splash_add_css()

static void _splash_add_css ( const char *  data)
static

References dt_splash_t::css, and splash.

Referenced by dt_gui_splash_init().

◆ _splash_build_author_list()

static gchar * _splash_build_author_list ( guint  max_names)
static

References dt_splash_t::authors, FALSE, i, name, and splash.

Referenced by dt_gui_splash_init().

◆ _splash_build_data_path()

static gchar * _splash_build_data_path ( const char *  subpath)
static

References dt_loc_get_datadir(), and PATH_MAX.

Referenced by _splash_load_slides().

◆ _splash_capitalize_name()

static gchar * _splash_capitalize_name ( const char *  name)
static

References name, and out.

Referenced by dt_gui_splash_init().

◆ _splash_clear_slide_cache()

◆ _splash_create_logo()

static GtkWidget * _splash_create_logo ( int  target_size,
int  scale_factor,
gchar **  out_path 
)
static

◆ _splash_draw()

◆ _splash_env_is_truthy()

static gboolean _splash_env_is_truthy ( const char *  value)
static

References FALSE, TRUE, and value.

Referenced by _splash_is_disabled().

◆ _splash_force_show()

static void _splash_force_show ( void  )
static

◆ _splash_is_disabled()

static gboolean _splash_is_disabled ( void  )
static

References _splash_env_is_truthy().

Referenced by dt_gui_splash_init().

◆ _splash_load_authors()

static void _splash_load_authors ( void  )
static

◆ _splash_load_slides()

static void _splash_load_slides ( void  )
static

◆ _splash_logo_set_from_path()

static gboolean _splash_logo_set_from_path ( GtkWidget logo,
const char *  path,
int  target_size,
int  scale_factor 
)
static

◆ _splash_scale_factor_changed()

static void _splash_scale_factor_changed ( GObject *  object,
GParamSpec *  pspec,
gpointer  user_data 
)
static

◆ _splash_shadow_label_new()

static GtkWidget * _splash_shadow_label_new ( const gchar *  text,
const gchar *  name,
const gchar *  shadow_name,
GtkWidget **  out_main 
)
static

References name.

Referenced by dt_gui_splash_init().

◆ _splash_shadow_label_set_text()

static void _splash_shadow_label_set_text ( GtkWidget label,
const gchar *  text 
)
static

Referenced by _splash_update_message().

◆ _splash_slide_advance()

static gboolean _splash_slide_advance ( gpointer  user_data)
static

◆ _splash_slide_free()

static void _splash_slide_free ( gpointer  data)
static

◆ _splash_slide_new()

static dt_splash_slide_t * _splash_slide_new ( const gchar *  path,
const gchar *  author 
)
static

◆ _splash_update_logo_for_scale()

◆ _splash_update_message()

static void _splash_update_message ( const gchar *  message)
static

◆ dt_gui_splash_close()

◆ dt_gui_splash_init()

◆ dt_gui_splash_set_transient_for()

void dt_gui_splash_set_transient_for ( GtkWidget parent)

References splash, TRUE, and dt_splash_t::window.

Referenced by _init_widgets().

◆ dt_gui_splash_update()

void dt_gui_splash_update ( const char *  message)

References _splash_update_message(), and splash.

◆ dt_gui_splash_updatef()

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

Variable Documentation

◆ splash