示例#1
0
/* Apply Function */
static void
_apply(E_Config_Dialog_Data *cfdata)
{
  Eco_Option *value;
  int val;
  e_widget_slider_value_int_get(o_opacity, &val);
  int sel = e_widget_ilist_selected_get(o_matches);
  value = eco_config_option_list_nth(cfg_screen, "opacity_values", sel);
  if (value) value->intValue = val;
  
  eco_config_group_apply("core"); 
}
示例#2
0
/* Apply Function */
static void
_apply(E_Config_Dialog_Data *cfdata)
{
  Eco_Option *opt, *item;
  int val, sel, i;
  Eina_List *l = NULL;
  const char *match;
  
  sel = e_widget_ilist_selected_get(o_matches);

  /* set effect */
  opt = eco_config_option_list_nth(cfg_screen, str_effects, sel);
  if (opt) opt->intValue = effect;

  /* update match */
  match = e_widget_ilist_nth_label_get(o_matches, sel);
  opt = eco_config_option_list_nth(cfg_screen, str_matches, sel);
  if (opt && match)
    {
      eco_string_free(opt->stringValue);
      opt->stringValue = eina_stringshare_add(match);
    }
  /* update duration */
  opt = eco_config_option_list_nth(cfg_screen, str_durations, sel);
  if (opt) opt->intValue = duration;
  
  /* update random effect list */
  opt = eco_config_option_get(cfg_screen, str_randoms);
  EINA_LIST_FREE(opt->listValue, item) free(item);
  for (i = 0; i < effect_cnt; i++)
    {
     if (random_effect[i])
	{
	  item = calloc (1, sizeof(Eco_Option));
	  item->intValue = i;
	  l = eina_list_append(l, item);
	}
    }
  opt->listValue = l;
  
  eco_config_group_apply("animation"); 
}
示例#3
0
/* Apply Function */
static void
_apply(E_Config_Dialog_Data *cfdata)
{
  eco_config_group_apply("blur"); 
}
/* Apply Function */
static void
_apply(E_Config_Dialog_Data *cfdata)
{
  eco_config_group_apply("decoration");  
}