32static gboolean
select_all_callback(GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
47static gboolean
clear_selection_callback(GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
55static gboolean
invert_selection_callback(GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
71 add_sub_menu_entry(menus, lists, _(
"Select all"), index, NULL,
select_all_callback, NULL, NULL,
select_all_sensitive_callback, GDK_KEY_a, GDK_CONTROL_MASK);
73 add_sub_menu_entry(menus, lists, _(
"Clear selection"), index, NULL,
clear_selection_callback, NULL, NULL,
clear_selection_sensitive_callback, GDK_KEY_a, GDK_CONTROL_MASK | GDK_SHIFT_MASK);
75 add_sub_menu_entry(menus, lists, _(
"Invert selection"), index, NULL,
invert_selection_callback, NULL, NULL,
clear_selection_sensitive_callback, GDK_KEY_i, GDK_CONTROL_MASK);
79 add_sub_menu_entry(menus, lists, _(
"Scroll back to selection"), index, NULL,
scroll_to_selection_callback, NULL, NULL, NULL, 0, 0);
uint32_t dt_collection_get_count(const dt_collection_t *collection)
static gboolean invert_selection_callback(GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
void append_select(GtkWidget **menus, GList **lists, const dt_menus_t index)
static gboolean clear_selection_callback(GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
gboolean select_all_sensitive_callback()
static gboolean select_all_callback(GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
gboolean clear_selection_sensitive_callback()
static gboolean scroll_to_selection_callback(GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
int dt_selection_get_length(struct dt_selection_t *selection)
void dt_selection_clear(dt_selection_t *selection)
struct _GtkWidget GtkWidget
struct dt_gui_gtk_t * gui
struct dt_collection_t * collection
struct dt_selection_t * selection
dt_thumbtable_t * thumbtable_lighttable
dt_thumbtable_t * thumbtable_filmstrip
int dt_thumbtable_scroll_to_selection(dt_thumbtable_t *table)
Scroll to show selected content.
void dt_thumbtable_invert_selection(dt_thumbtable_t *table)
Invert the current selection.
void dt_thumbtable_select_all(dt_thumbtable_t *table)
Select all images in the current grid.