Fix modules dialog to work w/ smaller resolutions (ilist was too tall).

Add some missing wrapper functions for slider widget (used in new temp
config dialog).



SVN revision: 47797
devs/princeamd/enlightenment-0.17-elive
Christopher Michael 13 years ago
parent 9c377c1e93
commit 72a851477e
  1. 4
      src/bin/e_int_config_modules.c
  2. 27
      src/bin/e_widget_slider.c
  3. 3
      src/bin/e_widget_slider.h

@ -151,8 +151,8 @@ _basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
cfdata->l_modules = ol;
e_widget_size_min_get(cfdata->l_modules, &w, NULL);
if (w < 200 * e_scale) w = 200 * e_scale;
e_widget_size_min_set(cfdata->l_modules, w, 150 * e_scale);
if (w < 200 * e_scale) w = (200 * e_scale);
e_widget_size_min_set(cfdata->l_modules, w, (100 * e_scale));
e_widget_ilist_multi_select_set(ol, EINA_TRUE);
e_widget_on_change_hook_set(ol, _widget_list_selection_changed, cfdata);

@ -147,6 +147,33 @@ e_widget_slider_value_int_get(Evas_Object *slider, int *ival)
return 1;
}
EAPI void
e_widget_slider_value_format_display_set(Evas_Object *slider, const char *format)
{
E_Widget_Data *wd;
wd = e_widget_data_get(slider);
e_slider_value_format_display_set(wd->o_slider, format);
}
EAPI void
e_widget_slider_value_range_set(Evas_Object *slider, double min, double max)
{
E_Widget_Data *wd;
wd = e_widget_data_get(slider);
e_slider_value_range_set(wd->o_slider, min, max);
}
EAPI void
e_widget_slider_value_step_size_set(Evas_Object *slider, double step_size)
{
E_Widget_Data *wd;
wd = e_widget_data_get(slider);
e_slider_value_step_size_set(wd->o_slider, step_size);
}
EAPI void
e_widget_slider_special_value_add(Evas_Object *obj, double value, double error, const char *label)
{

@ -11,6 +11,9 @@ EAPI int e_widget_slider_value_double_set(Evas_Object *slider, double dval);
EAPI int e_widget_slider_value_int_set(Evas_Object *slider, int ival);
EAPI int e_widget_slider_value_double_get(Evas_Object *slider, double *dval);
EAPI int e_widget_slider_value_int_get(Evas_Object *slider, int *ival);
EAPI void e_widget_slider_value_format_display_set(Evas_Object *slider, const char *format);
EAPI void e_widget_slider_value_range_set(Evas_Object *slider, double min, double max);
EAPI void e_widget_slider_value_step_size_set(Evas_Object *slider, double step_size);
EAPI void e_widget_slider_special_value_add(Evas_Object *obj, double value, double error, const char *label);

Loading…
Cancel
Save