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

Go to the source code of this file.

Functions

G_BEGIN_DECLS GtkNotebookdt_ui_notebook_new (void)
 
GtkWidgetdt_ui_notebook_page (GtkNotebook *notebook, const char *text, const char *tooltip)
 
void dt_ui_notebook_set_picker_owner (GtkNotebook *notebook, gpointer owner)
 Register an opaque owner for a GtkNotebook's page switches, and report every "switch_page" to the host through dt_widget_notebook_page_changed().
 

Function Documentation

◆ dt_ui_notebook_new()

G_BEGIN_DECLS GtkNotebook * dt_ui_notebook_new ( void  )

Definition at line 83 of file notebook.c.

References L.

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_notebook_set_picker_owner()

void dt_ui_notebook_set_picker_owner ( GtkNotebook notebook,
gpointer  owner 
)

Register an opaque owner for a GtkNotebook's page switches, and report every "switch_page" to the host through dt_widget_notebook_page_changed().

This layer does not know or care what owner is: it is carried through as-is. Any interested listener (e.g. the color picker, which resets a picker left active on a page the user just switched away from) casts the payload back to whatever type it registered here. Works on any GtkNotebook, whether created via dt_ui_notebook_new() or gtk_notebook_new().

Definition at line 118 of file notebook.c.

References _notebook_switch_page_signal_relay(), IS_NULL_PTR, L, and notebook.

Referenced by gui_init(), and gui_init().