static void button_clicked(GtkWidget *widget, gpointer user_data) { int i = GPOINTER_TO_INT(user_data); if(i == 0) dt_control_remove_images(); else if(i == 1) dt_control_delete_images(); // else if(i == 2) dt_control_write_sidecar_files(); else if(i == 3) dt_control_duplicate_images(); else if(i == 4) dt_control_flip_images(0); else if(i == 5) dt_control_flip_images(1); else if(i == 6) dt_control_flip_images(2); else if(i == 7) dt_control_merge_hdr(); else if(i == 8) dt_control_move_images(); else if(i == 9) dt_control_copy_images(); else if(i == 10) _group_helper_function(); else if(i == 11) _ungroup_helper_function(); else if(i == 12) dt_control_set_local_copy_images(); else if(i == 13) dt_control_reset_local_copy_images(); }
static void button_clicked(GtkWidget *widget, gpointer user_data) { long int i = (long int)user_data; if (i == 0) dt_control_remove_images(); else if(i == 1) dt_control_delete_images(); // else if(i == 2) dt_control_write_sidecar_files(); else if(i == 3) dt_control_duplicate_images(); else if(i == 4) dt_control_flip_images(0); else if(i == 5) dt_control_flip_images(1); else if(i == 6) dt_control_flip_images(2); else if(i == 7) dt_control_merge_hdr(); dt_control_queue_redraw_center(); }