Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
gtk.h File Reference
#include "common/darktable.h"
#include "common/dtpthread.h"
#include "dtgtk/thumbtable.h"
#include "gui/window_manager.h"
#include "gui/accelerators.h"
#include <gtk/gtk.h>
#include <stdint.h>
+ Include dependency graph for gtk.h:

Go to the source code of this file.

Data Structures

struct  dt_gui_widgets_t
 
struct  dt_gui_gtk_t
 
struct  _gui_collapsible_section_t
 

Macros

#define DT_GUI_IOP_MODULE_CONTROL_SPACING   0
 
#define DT_PIXEL_APPLY_DPI(value)   ((value) * darktable.gui->dpi_factor)
 
#define dt_accels_new_global_action(a, b, c, d, e, f, g)   dt_accels_new_action_shortcut(darktable.gui->accels, a, b, darktable.gui->accels->global_accels, c, d, e, f, FALSE, g)
 
#define dt_accels_new_darkroom_action(a, b, c, d, e, f, g)   dt_accels_new_action_shortcut(darktable.gui->accels, a, b, darktable.gui->accels->darkroom_accels, c, d, e, f, FALSE, g)
 
#define dt_accels_new_lighttable_action(a, b, c, d, e, f, g)   dt_accels_new_action_shortcut(darktable.gui->accels, a, b, darktable.gui->accels->lighttable_accels, c, d, e, f, FALSE, g)
 
#define dt_accels_new_darkroom_locked_action(a, b, c, d, e, f, g)   dt_accels_new_action_shortcut(darktable.gui->accels, a, b, darktable.gui->accels->darkroom_accels, c, d, e, f, TRUE, g)
 

Typedefs

typedef struct dt_gui_widgets_t dt_gui_widgets_t
 
typedef enum dt_gui_color_t dt_gui_color_t
 
typedef struct dt_gui_gtk_t dt_gui_gtk_t
 
typedef struct _gui_collapsible_section_t dt_gui_collapsible_section_t
 

Enumerations

enum  dt_gui_color_t {
  DT_GUI_COLOR_BG = 0 ,
  DT_GUI_COLOR_DARKROOM_BG ,
  DT_GUI_COLOR_DARKROOM_PREVIEW_BG ,
  DT_GUI_COLOR_LIGHTTABLE_BG ,
  DT_GUI_COLOR_LIGHTTABLE_PREVIEW_BG ,
  DT_GUI_COLOR_LIGHTTABLE_FONT ,
  DT_GUI_COLOR_PRINT_BG ,
  DT_GUI_COLOR_BRUSH_CURSOR ,
  DT_GUI_COLOR_BRUSH_TRACE ,
  DT_GUI_COLOR_BUTTON_FG ,
  DT_GUI_COLOR_THUMBNAIL_BG ,
  DT_GUI_COLOR_THUMBNAIL_SELECTED_BG ,
  DT_GUI_COLOR_THUMBNAIL_HOVER_BG ,
  DT_GUI_COLOR_THUMBNAIL_OUTLINE ,
  DT_GUI_COLOR_THUMBNAIL_SELECTED_OUTLINE ,
  DT_GUI_COLOR_THUMBNAIL_HOVER_OUTLINE ,
  DT_GUI_COLOR_THUMBNAIL_FONT ,
  DT_GUI_COLOR_THUMBNAIL_SELECTED_FONT ,
  DT_GUI_COLOR_THUMBNAIL_HOVER_FONT ,
  DT_GUI_COLOR_THUMBNAIL_BORDER ,
  DT_GUI_COLOR_THUMBNAIL_SELECTED_BORDER ,
  DT_GUI_COLOR_FILMSTRIP_BG ,
  DT_GUI_COLOR_PREVIEW_HOVER_BORDER ,
  DT_GUI_COLOR_LOG_BG ,
  DT_GUI_COLOR_LOG_FG ,
  DT_GUI_COLOR_MAP_COUNT_SAME_LOC ,
  DT_GUI_COLOR_MAP_COUNT_DIFF_LOC ,
  DT_GUI_COLOR_MAP_COUNT_BG ,
  DT_GUI_COLOR_MAP_LOC_SHAPE_HIGH ,
  DT_GUI_COLOR_MAP_LOC_SHAPE_LOW ,
  DT_GUI_COLOR_MAP_LOC_SHAPE_DEF ,
  DT_GUI_COLOR_LAST
}
 

Functions

static cairo_surface_t * dt_cairo_image_surface_create (cairo_format_t format, int width, int height)
 
static cairo_surface_t * dt_cairo_image_surface_create_for_data (unsigned char *data, cairo_format_t format, int width, int height, int stride)
 
static cairo_surface_t * dt_cairo_image_surface_create_from_png (const char *filename)
 
static int dt_cairo_image_surface_get_width (cairo_surface_t *surface)
 
static int dt_cairo_image_surface_get_height (cairo_surface_t *surface)
 
static cairo_surface_t * dt_gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf, int scale, GdkWindow *for_window)
 
static GdkPixbuf * dt_gdk_pixbuf_new_from_file_at_size (const char *filename, int width, int height, GError **error)
 
void dt_gui_add_class (GtkWidget *widget, const gchar *class_name)
 
void dt_gui_remove_class (GtkWidget *widget, const gchar *class_name)
 
int dt_gui_gtk_init (dt_gui_gtk_t *gui)
 
void dt_gui_gtk_run (dt_gui_gtk_t *gui)
 
void dt_gui_gtk_quit ()
 
void dt_gui_store_last_preset (const char *name)
 
int dt_gui_gtk_write_config ()
 
void dt_gui_gtk_set_source_rgb (cairo_t *cr, dt_gui_color_t)
 
void dt_gui_gtk_set_source_rgba (cairo_t *cr, dt_gui_color_t, float opacity_coef)
 
double dt_get_system_gui_ppd (GtkWidget *widget)
 
gboolean dt_gui_get_scroll_deltas (const GdkEventScroll *event, gdouble *delta_x, gdouble *delta_y)
 
gboolean dt_gui_get_scroll_unit_deltas (const GdkEventScroll *event, int *delta_x, int *delta_y)
 
gboolean dt_gui_get_scroll_delta (const GdkEventScroll *event, gdouble *delta)
 
gboolean dt_gui_get_scroll_unit_delta (const GdkEventScroll *event, int *delta)
 
void dt_ui_container_focus_widget (dt_ui_t *ui, const dt_ui_container_t c, GtkWidget *w)
 gives a widget focus in the container
 
void dt_ui_container_foreach (dt_ui_t *ui, const dt_ui_container_t c, GtkCallback callback)
 calls a callback on all children widgets from container
 
void dt_ui_container_destroy_children (dt_ui_t *ui, const dt_ui_container_t c)
 destroy all child widgets from container
 
void dt_ui_panel_show (dt_ui_t *ui, const dt_ui_panel_t, gboolean show, gboolean write)
 shows/hide a panel
 
void dt_ui_toggle_panels_visibility (dt_ui_t *ui)
 toggle view of panels eg. collapse/expands to previous view state
 
void dt_ui_notify_user ()
 draw user's attention
 
gboolean dt_ui_panel_visible (dt_ui_t *ui, const dt_ui_panel_t)
 get visible state of panel
 
int dt_ui_panel_get_size (dt_ui_t *ui, const dt_ui_panel_t p)
 get width of right, left, or bottom panel
 
gboolean dt_ui_panel_ancestor (dt_ui_t *ui, const dt_ui_panel_t p, GtkWidget *w)
 is the panel ancestor of widget
 
GtkWidget * dt_ui_center (dt_ui_t *ui)
 get the center drawable widget
 
GtkWidget * dt_ui_center_base (dt_ui_t *ui)
 
GtkWidget * dt_ui_main_window (dt_ui_t *ui)
 get the main window widget
 
GtkWidget * dt_ui_log_msg (dt_ui_t *ui)
 get the log message widget
 
GtkWidget * dt_ui_toast_msg (dt_ui_t *ui)
 get the toast message widget
 
GtkBox * dt_ui_get_container (dt_ui_t *ui, const dt_ui_container_t c)
 
void dt_ellipsize_combo (GtkComboBox *cbox)
 
void dt_capitalize_label (gchar *text)
 
static void dt_ui_section_label_set (GtkWidget *label)
 
static GtkWidget * dt_ui_section_label_new (const gchar *str)
 
static GtkWidget * dt_ui_label_new (const gchar *str)
 
GtkNotebook * dt_ui_notebook_new ()
 
GtkWidget * dt_ui_notebook_page (GtkNotebook *notebook, const char *text, const char *tooltip)
 
gboolean dt_gui_show_standalone_yes_no_dialog (const char *title, const char *markup, const char *no_text, const char *yes_text)
 
char * dt_gui_show_standalone_string_dialog (const char *title, const char *markup, const char *placeholder, const char *no_text, const char *yes_text)
 
void dt_gui_add_help_link (GtkWidget *widget, const char *link)
 
void dt_gui_load_theme (const char *theme)
 
void dt_configure_ppd_dpi (dt_gui_gtk_t *gui)
 
GdkModifierType dt_key_modifier_state ()
 
GtkWidget * dt_ui_scroll_wrap (GtkWidget *w, gint min_size, char *config_str)
 
gboolean dt_gui_container_has_children (GtkContainer *container)
 
int dt_gui_container_num_children (GtkContainer *container)
 
GtkWidget * dt_gui_container_first_child (GtkContainer *container)
 
GtkWidget * dt_gui_container_nth_child (GtkContainer *container, int which)
 
void dt_gui_container_remove_children (GtkContainer *container)
 
void dt_gui_container_destroy_children (GtkContainer *container)
 
void dt_gui_menu_popup (GtkMenu *menu, GtkWidget *button, GdkGravity widget_anchor, GdkGravity menu_anchor)
 
void dt_gui_draw_rounded_rectangle (cairo_t *cr, float width, float height, float x, float y)
 
gboolean dt_gui_search_start (GtkWidget *widget, GdkEventKey *event, GtkSearchEntry *entry)
 
void dt_gui_search_stop (GtkSearchEntry *entry, GtkWidget *widget)
 
void dt_gui_new_collapsible_section (dt_gui_collapsible_section_t *cs, const char *confname, const char *label, GtkBox *parent)
 
void dt_gui_update_collapsible_section (dt_gui_collapsible_section_t *cs)
 
void dt_gui_hide_collapsible_section (dt_gui_collapsible_section_t *cs)
 
GtkBox * attach_popover (GtkWidget *widget, const char *icon, GtkWidget *content)
 
GtkBox * attach_help_popover (GtkWidget *widget, const char *label)
 
void dt_accels_disconnect_on_text_input (GtkWidget *widget)
 Disconnects accels when a text or search entry gets the focus, and reconnects them when it looses it. This helps dealing with one-key shortcuts.
 
static GtkWindow * dt_gtk_get_window (GtkWidget *widget)
 
void dt_gui_refocus_center ()
 

Macro Definition Documentation

◆ dt_accels_new_darkroom_action

#define dt_accels_new_darkroom_action (   a,
  b,
  c,
  d,
  e,
  f,
 
)    dt_accels_new_action_shortcut(darktable.gui->accels, a, b, darktable.gui->accels->darkroom_accels, c, d, e, f, FALSE, g)

◆ dt_accels_new_darkroom_locked_action

#define dt_accels_new_darkroom_locked_action (   a,
  b,
  c,
  d,
  e,
  f,
 
)    dt_accels_new_action_shortcut(darktable.gui->accels, a, b, darktable.gui->accels->darkroom_accels, c, d, e, f, TRUE, g)

◆ dt_accels_new_global_action

#define dt_accels_new_global_action (   a,
  b,
  c,
  d,
  e,
  f,
 
)    dt_accels_new_action_shortcut(darktable.gui->accels, a, b, darktable.gui->accels->global_accels, c, d, e, f, FALSE, g)

◆ dt_accels_new_lighttable_action

#define dt_accels_new_lighttable_action (   a,
  b,
  c,
  d,
  e,
  f,
 
)    dt_accels_new_action_shortcut(darktable.gui->accels, a, b, darktable.gui->accels->lighttable_accels, c, d, e, f, FALSE, g)

◆ DT_GUI_IOP_MODULE_CONTROL_SPACING

#define DT_GUI_IOP_MODULE_CONTROL_SPACING   0

◆ DT_PIXEL_APPLY_DPI

#define DT_PIXEL_APPLY_DPI (   value)    ((value) * darktable.gui->dpi_factor)

Typedef Documentation

◆ dt_gui_collapsible_section_t

◆ dt_gui_color_t

◆ dt_gui_gtk_t

typedef struct dt_gui_gtk_t dt_gui_gtk_t

◆ dt_gui_widgets_t

Enumeration Type Documentation

◆ dt_gui_color_t

Enumerator
DT_GUI_COLOR_BG 
DT_GUI_COLOR_DARKROOM_BG 
DT_GUI_COLOR_DARKROOM_PREVIEW_BG 
DT_GUI_COLOR_LIGHTTABLE_BG 
DT_GUI_COLOR_LIGHTTABLE_PREVIEW_BG 
DT_GUI_COLOR_LIGHTTABLE_FONT 
DT_GUI_COLOR_PRINT_BG 
DT_GUI_COLOR_BRUSH_CURSOR 
DT_GUI_COLOR_BRUSH_TRACE 
DT_GUI_COLOR_BUTTON_FG 
DT_GUI_COLOR_THUMBNAIL_BG 
DT_GUI_COLOR_THUMBNAIL_SELECTED_BG 
DT_GUI_COLOR_THUMBNAIL_HOVER_BG 
DT_GUI_COLOR_THUMBNAIL_OUTLINE 
DT_GUI_COLOR_THUMBNAIL_SELECTED_OUTLINE 
DT_GUI_COLOR_THUMBNAIL_HOVER_OUTLINE 
DT_GUI_COLOR_THUMBNAIL_FONT 
DT_GUI_COLOR_THUMBNAIL_SELECTED_FONT 
DT_GUI_COLOR_THUMBNAIL_HOVER_FONT 
DT_GUI_COLOR_THUMBNAIL_BORDER 
DT_GUI_COLOR_THUMBNAIL_SELECTED_BORDER 
DT_GUI_COLOR_FILMSTRIP_BG 
DT_GUI_COLOR_PREVIEW_HOVER_BORDER 
DT_GUI_COLOR_LOG_BG 
DT_GUI_COLOR_LOG_FG 
DT_GUI_COLOR_MAP_COUNT_SAME_LOC 
DT_GUI_COLOR_MAP_COUNT_DIFF_LOC 
DT_GUI_COLOR_MAP_COUNT_BG 
DT_GUI_COLOR_MAP_LOC_SHAPE_HIGH 
DT_GUI_COLOR_MAP_LOC_SHAPE_LOW 
DT_GUI_COLOR_MAP_LOC_SHAPE_DEF 
DT_GUI_COLOR_LAST 

Function Documentation

◆ attach_help_popover()

GtkBox * attach_help_popover ( GtkWidget *  widget,
const char *  label 
)

Add an help button triggering a popover label next to an arbitrary widget, to document its action. This is a better take at help tooltips that most people don't see, unless they know about them. Also tooltips window positionning is wonky (can easily overflow viewport), line breaks are added manually (ugly hack), and they appear and disappear on hover (not available on touch screens), so it's flimsy UI.

Parameters
widgetthe original widget to document. DON'T add it to a container.
labelthe in-app "docstring" for the widget
Returns
the GtkBox containing both the original widget and its popover button. That's what you will need to add it to your container.

References attach_popover(), and TRUE.

Referenced by gui_init().

◆ attach_popover()

GtkBox * attach_popover ( GtkWidget *  widget,
const char *  icon,
GtkWidget *  content 
)

Add an arbitrary button next to the widget that opens a popover with arbitrary content.

Parameters
widgetthe original widget next to which the popover button will be added. DON'T add it to a container.
iconthe Freedesktop icon name to put in the button
contentthe widget that will fit inside the popover
Returns
the GtkBox containing both the original widget and its popover button. That's what you will need to add it to your container.

References DT_PIXEL_APPLY_DPI, and FALSE.

Referenced by attach_help_popover(), and gui_init().

◆ dt_accels_disconnect_on_text_input()

◆ dt_cairo_image_surface_create()

◆ dt_cairo_image_surface_create_for_data()

static cairo_surface_t * dt_cairo_image_surface_create_for_data ( unsigned char *  data,
cairo_format_t  format,
int  width,
int  height,
int  stride 
)
inlinestatic

◆ dt_cairo_image_surface_create_from_png()

static cairo_surface_t * dt_cairo_image_surface_create_from_png ( const char *  filename)
inlinestatic

◆ dt_cairo_image_surface_get_height()

static int dt_cairo_image_surface_get_height ( cairo_surface_t *  surface)
inlinestatic

◆ dt_cairo_image_surface_get_width()

static int dt_cairo_image_surface_get_width ( cairo_surface_t *  surface)
inlinestatic

◆ dt_capitalize_label()

◆ dt_configure_ppd_dpi()

◆ dt_ellipsize_combo()

void dt_ellipsize_combo ( GtkComboBox *  cbox)

◆ dt_gdk_cairo_surface_create_from_pixbuf()

static cairo_surface_t * dt_gdk_cairo_surface_create_from_pixbuf ( const GdkPixbuf *  pixbuf,
int  scale,
GdkWindow *  for_window 
)
inlinestatic

◆ dt_gdk_pixbuf_new_from_file_at_size()

static GdkPixbuf * dt_gdk_pixbuf_new_from_file_at_size ( const char *  filename,
int  width,
int  height,
GError **  error 
)
inlinestatic

◆ dt_get_system_gui_ppd()

double dt_get_system_gui_ppd ( GtkWidget *  widget)

◆ dt_gtk_get_window()

static GtkWindow * dt_gtk_get_window ( GtkWidget *  widget)
inlinestatic

◆ dt_gui_add_class()

◆ dt_gui_add_help_link()

◆ dt_gui_container_destroy_children()

void dt_gui_container_destroy_children ( GtkContainer *  container)

◆ dt_gui_container_first_child()

GtkWidget * dt_gui_container_first_child ( GtkContainer *  container)

References container().

Referenced by _get_container_row_heigth(), and gui_init().

◆ dt_gui_container_has_children()

gboolean dt_gui_container_has_children ( GtkContainer *  container)

References container(), and FALSE.

Referenced by _destroyed_gui_thread().

◆ dt_gui_container_nth_child()

GtkWidget * dt_gui_container_nth_child ( GtkContainer *  container,
int  which 
)

◆ dt_gui_container_num_children()

int dt_gui_container_num_children ( GtkContainer *  container)

References container(), and FALSE.

Referenced by container_len().

◆ dt_gui_container_remove_children()

void dt_gui_container_remove_children ( GtkContainer *  container)

◆ dt_gui_draw_rounded_rectangle()

void dt_gui_draw_rounded_rectangle ( cairo_t *  cr,
float  width,
float  height,
float  x,
float  y 
)

References height, M_PI, and width.

Referenced by gui_draw_sym(), gui_post_expose(), and gui_post_expose().

◆ dt_gui_get_scroll_delta()

gboolean dt_gui_get_scroll_delta ( const GdkEventScroll *  event,
gdouble *  delta 
)

◆ dt_gui_get_scroll_deltas()

gboolean dt_gui_get_scroll_deltas ( const GdkEventScroll *  event,
gdouble *  delta_x,
gdouble *  delta_y 
)

◆ dt_gui_get_scroll_unit_delta()

gboolean dt_gui_get_scroll_unit_delta ( const GdkEventScroll *  event,
int *  delta 
)

◆ dt_gui_get_scroll_unit_deltas()

◆ dt_gui_gtk_init()

◆ dt_gui_gtk_quit()

◆ dt_gui_gtk_run()

◆ dt_gui_gtk_set_source_rgb()

◆ dt_gui_gtk_set_source_rgba()

void dt_gui_gtk_set_source_rgba ( cairo_t *  cr,
dt_gui_color_t  color,
float  opacity_coef 
)

◆ dt_gui_gtk_write_config()

◆ dt_gui_hide_collapsible_section()

◆ dt_gui_load_theme()

◆ dt_gui_menu_popup()

◆ dt_gui_new_collapsible_section()

◆ dt_gui_refocus_center()

◆ dt_gui_remove_class()

◆ dt_gui_search_start()

gboolean dt_gui_search_start ( GtkWidget *  widget,
GdkEventKey *  event,
GtkSearchEntry *  entry 
)

References FALSE, and TRUE.

Referenced by init_tab_presets().

◆ dt_gui_search_stop()

void dt_gui_search_stop ( GtkSearchEntry *  entry,
GtkWidget *  widget 
)

Referenced by init_tab_presets().

◆ dt_gui_show_standalone_string_dialog()

char * dt_gui_show_standalone_string_dialog ( const char *  title,
const char *  markup,
const char *  placeholder,
const char *  no_text,
const char *  yes_text 
)

◆ dt_gui_show_standalone_yes_no_dialog()

gboolean dt_gui_show_standalone_yes_no_dialog ( const char *  title,
const char *  markup,
const char *  no_text,
const char *  yes_text 
)

◆ dt_gui_store_last_preset()

void dt_gui_store_last_preset ( const char *  name)

◆ dt_gui_update_collapsible_section()

◆ dt_key_modifier_state()

GdkModifierType dt_key_modifier_state ( )
Todo:
double check correct way of doing this (merge conflict with Input System NG 20210319) GdkKeymap *keymap = gdk_keymap_get_for_display(gdk_display_get_default()); return gdk_keymap_get_modifier_state(keymap) & gdk_keymap_get_modifier_mask(keymap, GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK);

References darktable, dt_ui_main_window(), darktable_t::gui, and dt_gui_gtk_t::ui.

Referenced by _color_picker_callback_button_press(), blend_color_picker_apply(), and color_picker_apply().

◆ dt_ui_center()

◆ dt_ui_center_base()

GtkWidget * dt_ui_center_base ( dt_ui_t ui)

References dt_ui_t::center_base.

Referenced by _ui_toast_redraw_callback(), and leave().

◆ dt_ui_container_destroy_children()

void dt_ui_container_destroy_children ( dt_ui_t ui,
const dt_ui_container_t  c 
)

destroy all child widgets from container

References dt_ui_t::containers, and dt_gui_container_destroy_children().

Referenced by dt_view_manager_switch_by_view().

◆ dt_ui_container_focus_widget()

void dt_ui_container_focus_widget ( dt_ui_t ui,
const dt_ui_container_t  c,
GtkWidget *  w 
)

gives a widget focus in the container

References dt_ui_t::containers.

Referenced by _gui_set_single_expanded().

◆ dt_ui_container_foreach()

void dt_ui_container_foreach ( dt_ui_t ui,
const dt_ui_container_t  c,
GtkCallback  callback 
)

calls a callback on all children widgets from container

References dt_ui_t::containers.

Referenced by dt_view_manager_switch_by_view().

◆ dt_ui_get_container()

◆ dt_ui_label_new()

◆ dt_ui_log_msg()

GtkWidget * dt_ui_log_msg ( dt_ui_t ui)

get the log message widget

References dt_ui_t::log_msg.

Referenced by _init_widgets().

◆ dt_ui_main_window()

GtkWidget * dt_ui_main_window ( dt_ui_t ui)

get the main window widget

References dt_ui_t::main_window.

Referenced by _apply_rename_path(), _ask_before_delete_style(), _choose_gpx_callback(), _datetime_key_pressed(), _discarded_files_popup(), _dt_delete_dialog_main_thread(), _edit_preset(), _enter_key_pressed(), _export_button_clicked(), _export_button_clicked(), _gui_styles_dialog_run(), _gui_styles_edit_style_response(), _gui_styles_new_style_response(), _import_button_clicked(), _init_widgets(), _key_pressed(), _main_do_event_help(), _menuitem_delete_preset(), _menuitem_preferences(), _menuitem_update_preset(), _pop_menu_dictionary_change_path(), _pop_menu_dictionary_create_tag(), _pop_menu_dictionary_delete_node(), _pop_menu_dictionary_delete_tag(), _pop_menu_dictionary_edit_tag(), _preview_gpx_file(), _scroll_wrap_resize(), _timezone_key_pressed(), _timezone_save(), ask_and_delete(), button_clicked(), button_clicked(), button_clicked(), dt_bauhaus_init(), dt_bauhaus_load_theme(), dt_bauhaus_show_popup(), dt_cleanup(), dt_control_change_cursor(), dt_control_copy_images(), dt_control_crawler_show_image_list(), dt_control_delete_image(), dt_control_delete_images(), dt_control_move_images(), dt_control_remove_images(), dt_gui_gtk_init(), dt_gui_gtk_quit(), dt_gui_gtk_write_config(), dt_gui_hist_dialog_new(), dt_gui_load_theme(), dt_gui_preferences_show(), dt_gui_refocus_center(), dt_gui_show_standalone_string_dialog(), dt_gui_show_standalone_yes_no_dialog(), dt_key_modifier_state(), dt_lib_export_metadata_configuration_dialog(), dt_preview_window_spawn(), dt_ui_notify_user(), dt_view_manager_button_pressed(), dt_view_manager_switch_by_view(), edit_preset(), enter(), export_clicked(), export_files_callback(), full_screen_callback(), full_screen_checked_callback(), get_stamp_params(), global_progress_end(), global_progress_set(), global_progress_start(), gui_init(), gui_reset(), import_clicked(), load_xmp_callback(), menuitem_delete_preset(), menuitem_update_preset(), mouse_leave(), mouse_moved(), open_booking_callback(), open_chat_callback(), open_doc_callback(), open_donate_callback(), open_forum_callback(), open_search_callback(), search_accels_callback(), shortcuts_callback(), show_about_dialog(), switch_cursors(), and view_popup_menu_onSearchFilmroll().

◆ dt_ui_notebook_new()

GtkNotebook * dt_ui_notebook_new ( )

Referenced by gui_init(), gui_init(), and gui_init().

◆ dt_ui_notebook_page()

GtkWidget * dt_ui_notebook_page ( GtkNotebook *  notebook,
const char *  text,
const char *  tooltip 
)

◆ dt_ui_notify_user()

void dt_ui_notify_user ( )

◆ dt_ui_panel_ancestor()

gboolean dt_ui_panel_ancestor ( dt_ui_t ui,
const dt_ui_panel_t  p,
GtkWidget *  w 
)

is the panel ancestor of widget

References FALSE, and dt_ui_t::panels.

Referenced by _get_preferred_width().

◆ dt_ui_panel_get_size()

◆ dt_ui_panel_show()

◆ dt_ui_panel_visible()

gboolean dt_ui_panel_visible ( dt_ui_t ui,
const dt_ui_panel_t  p 
)

◆ dt_ui_scroll_wrap()

GtkWidget * dt_ui_scroll_wrap ( GtkWidget *  w,
gint  min_size,
char *  config_str 
)

◆ dt_ui_section_label_new()

static GtkWidget * dt_ui_section_label_new ( const gchar *  str)
inlinestatic

◆ dt_ui_section_label_set()

static void dt_ui_section_label_set ( GtkWidget *  label)
inlinestatic

◆ dt_ui_toast_msg()

GtkWidget * dt_ui_toast_msg ( dt_ui_t ui)

get the toast message widget

References dt_ui_t::toast_msg.

Referenced by _init_widgets().

◆ dt_ui_toggle_panels_visibility()

void dt_ui_toggle_panels_visibility ( dt_ui_t ui)

toggle view of panels eg. collapse/expands to previous view state

References dt_conf_get_int(), dt_conf_set_int(), dt_ui_restore_panels(), key, and panels_get_view_path().

Referenced by _toggle_side_borders_accel_callback().