Esempio n. 1
0
void connect_key_accels(dt_iop_module_t *self)
{
  GClosure *closure;

  closure = g_cclosure_new(G_CALLBACK(key_softproof_callback), (gpointer)self, NULL);
  dt_accel_connect_iop(self, "toggle softproofing", closure);

  closure = g_cclosure_new(G_CALLBACK(key_gamutcheck_callback), (gpointer)self, NULL);
  dt_accel_connect_iop(self, "toggle gamutcheck", closure);
}
Esempio n. 2
0
void dt_accel_connect_button_iop(dt_iop_module_t *module, const gchar *path,
                                 GtkWidget *button)
{
  GClosure *closure = g_cclosure_new(G_CALLBACK(_press_button_callback),
                                     button, NULL);
  dt_accel_connect_iop(module, path, closure);
}
Esempio n. 3
0
void connect_key_accels(dt_iop_module_t *self)
{
  dt_iop_temperature_gui_data_t *g = (dt_iop_temperature_gui_data_t *)self->gui_data;

  dt_accel_connect_slider_iop(self, "tint", GTK_WIDGET(g->scale_tint));
  dt_accel_connect_slider_iop(self, "temperature", GTK_WIDGET(g->scale_k));
  dt_accel_connect_slider_iop(self, "red", GTK_WIDGET(g->scale_r));
  dt_accel_connect_slider_iop(self, "green", GTK_WIDGET(g->scale_g));
  dt_accel_connect_slider_iop(self, "blue", GTK_WIDGET(g->scale_b));
  dt_accel_connect_slider_iop(self, "green2", GTK_WIDGET(g->scale_g2));

  GClosure *closure;

  closure = g_cclosure_new(G_CALLBACK(_set_preset_camera), (gpointer)self, NULL);
  dt_accel_connect_iop(self, "preset/camera", closure);

  closure = g_cclosure_new(G_CALLBACK(_set_preset_camera_neutral), (gpointer)self, NULL);
  dt_accel_connect_iop(self, "preset/camera neutral", closure);

  closure = g_cclosure_new(G_CALLBACK(_set_preset_spot), (gpointer)self, NULL);
  dt_accel_connect_iop(self, "preset/spot", closure);
}
Esempio n. 4
0
void dt_accel_connect_preset_iop(dt_iop_module_t *module,  const gchar *path)
{
  GClosure* closure = NULL;
  char build_path[1024];
  gchar* name =g_strdup(path);
  snprintf(build_path,1024,"%s/%s",_("preset"),name);
  preset_iop_module_callback_description *callback_description = malloc(sizeof(preset_iop_module_callback_description));
  callback_description->module = module;
  callback_description->name = name;

  closure = g_cclosure_new(G_CALLBACK(preset_iop_module_callback),
                           callback_description, preset_iop_module_callback_destroyer);
  dt_accel_connect_iop(module, build_path, closure);

}