Nice work :) SVN revision: 28346devs/princeamd/enlightenment-0.17-elive
parent
d0e3a150b5
commit
7a3f2f0ed2
19 changed files with 838 additions and 168 deletions
@ -0,0 +1,25 @@ |
||||
/*
|
||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 |
||||
*/ |
||||
#include "e.h" |
||||
|
||||
EAPI int |
||||
e_dpms_init(void) |
||||
{ |
||||
int standby=0, suspend=0, off=0; |
||||
|
||||
ecore_x_dpms_enabled_set(e_config->dpms_enable); |
||||
|
||||
if (e_config->dpms_standby_enable) |
||||
standby = e_config->dpms_standby_timeout; |
||||
|
||||
if (e_config->dpms_suspend_enable) |
||||
suspend = e_config->dpms_suspend_timeout; |
||||
|
||||
if (e_config->dpms_off_enable) |
||||
off = e_config->dpms_off_timeout; |
||||
|
||||
ecore_x_dpms_timeouts_set(standby, suspend, off); |
||||
|
||||
return 1; |
||||
} |
@ -0,0 +1,9 @@ |
||||
#ifdef E_TYPEDEFS |
||||
#else |
||||
#ifndef E_DPMS_H |
||||
#define E_DPMS_H |
||||
|
||||
EAPI int e_dpms_init(void); |
||||
|
||||
#endif |
||||
#endif |
@ -0,0 +1,305 @@ |
||||
#include "e.h" |
||||
|
||||
static void *_create_data(E_Config_Dialog *cfd); |
||||
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); |
||||
static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); |
||||
static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, |
||||
E_Config_Dialog_Data *cfdata); |
||||
static int _advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); |
||||
static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, |
||||
E_Config_Dialog_Data *cfdata); |
||||
static void _cb_standby_slider_change(void *data, Evas_Object *obj); |
||||
static void _cb_suspend_slider_change(void *data, Evas_Object *obj); |
||||
static void _cb_off_slider_change(void *data, Evas_Object *obj); |
||||
|
||||
struct _E_Config_Dialog_Data |
||||
{ |
||||
E_Config_Dialog *cfd; |
||||
|
||||
Evas_Object *standby_slider; |
||||
Evas_Object *suspend_slider; |
||||
Evas_Object *off_slider; |
||||
|
||||
int enable_dpms; |
||||
int enable_standby; |
||||
int enable_suspend; |
||||
int enable_off; |
||||
|
||||
/*
|
||||
* The following timeouts are represented as minutes |
||||
* while the underlying e_config variables are in seconds |
||||
*/
|
||||
double standby_timeout;
|
||||
double suspend_timeout; |
||||
double off_timeout; |
||||
}; |
||||
|
||||
static E_Dialog *dpms_dialog = NULL; |
||||
|
||||
static void |
||||
_cb_dpms_dialog_ok(void *data, E_Dialog *dia) |
||||
{ |
||||
e_object_del(E_OBJECT(dpms_dialog)); |
||||
dpms_dialog = NULL; |
||||
} |
||||
|
||||
static int |
||||
_e_int_config_dpms_capable() |
||||
{ |
||||
if (ecore_x_dpms_capable()) return 1; |
||||
|
||||
if (dpms_dialog) e_object_del(E_OBJECT(dpms_dialog)); |
||||
dpms_dialog = e_dialog_new(e_container_current_get(e_manager_current_get()), "E", "_dpms_dialog"); |
||||
if (!dpms_dialog) return 0; |
||||
|
||||
e_dialog_title_set(dpms_dialog, _("Display Power Management Signaling")); |
||||
e_dialog_text_set(dpms_dialog, _("The current display server does not <br>" |
||||
"have the DPMS extension.")); |
||||
e_dialog_icon_set(dpms_dialog, "enlightenment/dpms", 64); |
||||
e_dialog_button_add(dpms_dialog, _("Ok"), NULL, _cb_dpms_dialog_ok, NULL); |
||||
e_dialog_button_focus_num(dpms_dialog, 1); |
||||
e_win_centered_set(dpms_dialog->win, 1); |
||||
e_dialog_show(dpms_dialog); |
||||
return 0; |
||||
} |
||||
|
||||
EAPI E_Config_Dialog * |
||||
e_int_config_dpms(E_Container *con) |
||||
{ |
||||
E_Config_Dialog *cfd; |
||||
E_Config_Dialog_View *v; |
||||
|
||||
if ((e_config_dialog_find("E", "_config_dpms_dialog")) ||
|
||||
(!_e_int_config_dpms_capable())) |
||||
return NULL; |
||||
|
||||
v = E_NEW(E_Config_Dialog_View, 1); |
||||
|
||||
v->create_cfdata = _create_data; |
||||
v->free_cfdata = _free_data; |
||||
v->basic.apply_cfdata = _advanced_apply_data; |
||||
v->basic.create_widgets = _advanced_create_widgets; |
||||
v->override_auto_apply = 1; |
||||
|
||||
cfd = e_config_dialog_new(con, _("DPMS Settings"), "E",
|
||||
"_config_dpms_dialog", "enlightenment/dpms",
|
||||
0, v, NULL); |
||||
return cfd; |
||||
} |
||||
|
||||
static void |
||||
_fill_data(E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
cfdata->enable_dpms = e_config->dpms_enable; |
||||
cfdata->enable_standby = e_config->dpms_standby_enable; |
||||
cfdata->standby_timeout = e_config->dpms_standby_timeout / 60; |
||||
cfdata->enable_suspend = e_config->dpms_suspend_enable; |
||||
cfdata->suspend_timeout = e_config->dpms_suspend_timeout / 60; |
||||
cfdata->enable_off = e_config->dpms_off_enable; |
||||
cfdata->off_timeout = e_config->dpms_off_timeout / 60; |
||||
} |
||||
|
||||
static void * |
||||
_create_data(E_Config_Dialog *cfd) |
||||
{ |
||||
E_Config_Dialog_Data *cfdata; |
||||
|
||||
cfdata = E_NEW(E_Config_Dialog_Data, 1); |
||||
cfdata->cfd = cfd; |
||||
|
||||
cfdata->standby_slider = NULL; |
||||
cfdata->suspend_slider = NULL; |
||||
cfdata->off_slider = NULL; |
||||
|
||||
_fill_data(cfdata); |
||||
return cfdata; |
||||
} |
||||
|
||||
static void |
||||
_free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
if (!cfdata) return; |
||||
|
||||
cfdata->standby_slider=NULL; |
||||
cfdata->suspend_slider=NULL; |
||||
cfdata->off_slider=NULL; |
||||
|
||||
E_FREE(cfdata); |
||||
} |
||||
|
||||
static int |
||||
_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
e_config->dpms_enable = cfdata->enable_dpms; |
||||
e_config->dpms_standby_enable = cfdata->enable_standby; |
||||
e_config->dpms_suspend_enable = cfdata->enable_suspend; |
||||
e_config->dpms_off_enable = cfdata->enable_off;
|
||||
|
||||
e_config->dpms_standby_timeout = cfdata->standby_timeout * 60; |
||||
e_config->dpms_suspend_timeout = cfdata->suspend_timeout * 60; |
||||
e_config->dpms_off_timeout = cfdata->off_timeout * 60; |
||||
|
||||
e_dpms_init(); |
||||
|
||||
e_config_save_queue(); |
||||
} |
||||
|
||||
static int |
||||
_basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
/*
|
||||
* NOTE: Since the BASIC interface does not allow you to manipulate |
||||
* the suspend and off features, I have decided to have them disabled |
||||
* when applying changes from this dialog. |
||||
* |
||||
* I do this because the timeouts must always satisfy the following: |
||||
* standby <= suspend <= off |
||||
* and if you use the basic dialog, and increase the standby timeout |
||||
* you might very well unknowingly push it right up to the off timout.
|
||||
* at which point, you monitor will turn off, instead of going into
|
||||
* standby. Which could be annoying.
|
||||
*/
|
||||
cfdata->enable_suspend = 0; |
||||
cfdata->enable_off = 0; |
||||
|
||||
_apply_data(cfd, cfdata); |
||||
return 1; |
||||
} |
||||
|
||||
static Evas_Object * |
||||
_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
Evas_Object *o, *of, *ob; |
||||
o = e_widget_list_add(evas, 0, 0); |
||||
|
||||
ob = e_widget_check_add(evas, _("Enable DPMS"), &(cfdata->enable_dpms)); |
||||
e_widget_list_object_append(o, ob, 1, 1 ,0);
|
||||
|
||||
of = e_widget_framelist_add(evas, _("DPMS Timer(s)"), 0); |
||||
|
||||
ob = e_widget_check_add(evas, _("Standby"), &(cfdata->enable_standby)); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f minutes"), |
||||
1.0, 90.0, 1.0, 0, &(cfdata->standby_timeout),
|
||||
NULL, 200); |
||||
e_widget_on_change_hook_set(ob, _cb_standby_slider_change, cfdata); |
||||
cfdata->standby_slider = ob; |
||||
e_widget_framelist_object_append(of, ob); |
||||
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5); |
||||
e_dialog_resizable_set(cfd->dia, 0); |
||||
return o; |
||||
} |
||||
|
||||
/* advanced window */ |
||||
static int |
||||
_advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
_apply_data(cfd, cfdata); |
||||
return 1; |
||||
} |
||||
|
||||
static Evas_Object * |
||||
_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
Evas_Object *o, *of, *ob; |
||||
E_Radio_Group *rg; |
||||
o = e_widget_list_add(evas, 0, 0); |
||||
|
||||
ob = e_widget_check_add(evas, _("Enable DPMS"), &(cfdata->enable_dpms)); |
||||
e_widget_list_object_append(o, ob, 1, 1, 0);
|
||||
|
||||
of = e_widget_framelist_add(evas, _("DPMS Timer(s)"), 0); |
||||
|
||||
ob = e_widget_check_add(evas, _("Standby"), &(cfdata->enable_standby)); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f minutes"), 1.0, 90.0, 1.0, 0,
|
||||
&(cfdata->standby_timeout), NULL, 200); |
||||
e_widget_on_change_hook_set(ob, _cb_standby_slider_change, cfdata);
|
||||
cfdata->standby_slider = ob; |
||||
e_widget_framelist_object_append(of, ob); |
||||
|
||||
ob = e_widget_check_add(evas, _("Suspend"), &(cfdata->enable_suspend)); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f minutes"), 1.0, 90.0, 1.0, 0,
|
||||
&(cfdata->suspend_timeout), NULL, 200); |
||||
e_widget_on_change_hook_set(ob, _cb_suspend_slider_change, cfdata); |
||||
cfdata->suspend_slider = ob; |
||||
e_widget_framelist_object_append(of, ob); |
||||
|
||||
ob = e_widget_check_add(evas, _("Off"), &(cfdata->enable_off)); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f minutes"), 1.0, 90.0, 1.0, 0,
|
||||
&(cfdata->off_timeout), NULL, 200); |
||||
e_widget_on_change_hook_set(ob, _cb_off_slider_change, cfdata); |
||||
cfdata->off_slider = ob; |
||||
e_widget_framelist_object_append(of, ob); |
||||
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5); |
||||
|
||||
e_dialog_resizable_set(cfd->dia, 0); |
||||
return o;
|
||||
} |
||||
|
||||
/* general functionality/callbacks */ |
||||
static void |
||||
_cb_standby_slider_change(void *data, Evas_Object *obj) |
||||
{ |
||||
E_Config_Dialog_Data *cfdata = data; |
||||
|
||||
/* standby-slider */ |
||||
if (cfdata->standby_timeout > cfdata->suspend_timeout) |
||||
{ |
||||
cfdata->suspend_timeout = cfdata->standby_timeout; |
||||
if (cfdata->suspend_slider) |
||||
e_widget_slider_value_double_set(cfdata->suspend_slider, cfdata->suspend_timeout); |
||||
|
||||
if (cfdata->suspend_timeout > cfdata->off_timeout) |
||||
{ |
||||
cfdata->off_timeout = cfdata->suspend_timeout; |
||||
if (cfdata->off_slider) |
||||
e_widget_slider_value_double_set(cfdata->off_slider, cfdata->off_timeout); |
||||
}
|
||||
} |
||||
} |
||||
|
||||
static void |
||||
_cb_suspend_slider_change(void *data, Evas_Object *obj) |
||||
{ |
||||
E_Config_Dialog_Data *cfdata = data; |
||||
|
||||
/* suspend-slider */ |
||||
if (cfdata->suspend_timeout > cfdata->off_timeout) |
||||
{ |
||||
cfdata->off_timeout = cfdata->suspend_timeout; |
||||
if (cfdata->off_slider) |
||||
e_widget_slider_value_double_set(cfdata->off_slider, cfdata->off_timeout); |
||||
} |
||||
if (cfdata->suspend_timeout < cfdata->standby_timeout) |
||||
{
|
||||
cfdata->standby_timeout = cfdata->suspend_timeout; |
||||
if (cfdata->standby_slider) |
||||
e_widget_slider_value_double_set(cfdata->standby_slider, cfdata->standby_timeout); |
||||
} |
||||
} |
||||
|
||||
static void |
||||
_cb_off_slider_change(void *data, Evas_Object *obj) |
||||
{ |
||||
E_Config_Dialog_Data *cfdata = data; |
||||
|
||||
/* off-slider */ |
||||
if (cfdata->off_timeout < cfdata->suspend_timeout) |
||||
{ |
||||
cfdata->suspend_timeout = cfdata->off_timeout; |
||||
if (cfdata->suspend_slider) |
||||
e_widget_slider_value_double_set(cfdata->suspend_slider, cfdata->suspend_timeout); |
||||
|
||||
if (cfdata->suspend_timeout < cfdata->standby_timeout) |
||||
{
|
||||
cfdata->standby_timeout = cfdata->suspend_timeout; |
||||
if (cfdata->standby_slider) |
||||
e_widget_slider_value_double_set(cfdata->standby_slider, cfdata->standby_timeout); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,9 @@ |
||||
#ifdef E_TYPEDEFS |
||||
#else |
||||
#ifndef E_INT_CONFIG_DPMS_H |
||||
#define E_INT_CONFIG_DPMS_H |
||||
|
||||
EAPI E_Config_Dialog *e_int_config_dpms(E_Container *con); |
||||
|
||||
#endif |
||||
#endif |
@ -0,0 +1,186 @@ |
||||
#include "e.h" |
||||
|
||||
#define E_CONFIG_BLANKING_DEFAULT 2 |
||||
#define E_CONFIG_BLANKING_PREFERRED 1 |
||||
#define E_CONFIG_BLANKING_NOT_PREFERRED 0 |
||||
|
||||
#define E_CONFIG_EXPOSURES_DEFAULT 2 |
||||
#define E_CONFIG_EXPOSURES_ALLOWED 1 |
||||
#define E_CONFIG_EXPOSURES_NOT_ALLOWED 0 |
||||
|
||||
static void *_create_data(E_Config_Dialog *cfd); |
||||
static void _free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); |
||||
static int _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); |
||||
static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, |
||||
E_Config_Dialog_Data *cfdata); |
||||
static int _advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata); |
||||
static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, |
||||
E_Config_Dialog_Data *cfdata); |
||||
|
||||
struct _E_Config_Dialog_Data |
||||
{ |
||||
E_Config_Dialog *cfd; |
||||
|
||||
int enable_screensaver; |
||||
double timeout; |
||||
double interval; |
||||
int blanking; |
||||
int exposures; |
||||
}; |
||||
|
||||
EAPI E_Config_Dialog * |
||||
e_int_config_screensaver(E_Container *con) |
||||
{ |
||||
E_Config_Dialog *cfd; |
||||
E_Config_Dialog_View *v; |
||||
|
||||
//e_widget_disabled_set(ob, !ecore_x_screensaver_event_available_get());
|
||||
if (e_config_dialog_find("E", "_config_screensaver_dialog")) return NULL; |
||||
v = E_NEW(E_Config_Dialog_View, 1); |
||||
|
||||
v->create_cfdata = _create_data; |
||||
v->free_cfdata = _free_data; |
||||
v->basic.apply_cfdata = _basic_apply_data; |
||||
v->basic.create_widgets = _basic_create_widgets; |
||||
v->advanced.apply_cfdata = _advanced_apply_data; |
||||
v->advanced.create_widgets = _advanced_create_widgets; |
||||
|
||||
v->override_auto_apply = 1; |
||||
|
||||
cfd = e_config_dialog_new(con,_("Screen Saver Settings"), |
||||
"E", "_config_screensaver_dialog", |
||||
"enlightenment/screensaver", 0, v, NULL); |
||||
return cfd; |
||||
} |
||||
|
||||
static void |
||||
_fill_data(E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
cfdata->enable_screensaver = e_config->screensaver_enable; |
||||
cfdata->timeout = e_config->screensaver_timeout / 60; |
||||
cfdata->interval = e_config->screensaver_interval; |
||||
cfdata->blanking = e_config->screensaver_blanking; |
||||
cfdata->exposures = e_config->screensaver_expose; |
||||
} |
||||
|
||||
static void * |
||||
_create_data(E_Config_Dialog *cfd) |
||||
{ |
||||
E_Config_Dialog_Data *cfdata; |
||||
|
||||
cfdata = E_NEW(E_Config_Dialog_Data, 1); |
||||
cfdata->cfd = cfd; |
||||
_fill_data(cfdata); |
||||
return cfdata; |
||||
} |
||||
|
||||
static void |
||||
_free_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
if (!cfdata) return; |
||||
E_FREE(cfdata); |
||||
} |
||||
|
||||
static int |
||||
_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) |
||||
{
|
||||
e_config->screensaver_enable = cfdata->enable_screensaver; |
||||
e_config->screensaver_timeout = cfdata->timeout * 60; |
||||
e_config->screensaver_interval = cfdata->interval; |
||||
e_config->screensaver_blanking = cfdata->blanking; |
||||
e_config->screensaver_expose = cfdata->exposures; |
||||
|
||||
/* Apply settings */ |
||||
e_screensaver_init(); |
||||
} |
||||
|
||||
static int |
||||
_basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
_apply_data(cfd, cfdata); |
||||
|
||||
e_config_save_queue(); |
||||
return 1; |
||||
} |
||||
|
||||
static Evas_Object * |
||||
_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
Evas_Object *o, *of, *ob; |
||||
o = e_widget_list_add(evas, 0, 0); |
||||
|
||||
ob = e_widget_check_add(evas, _("Enable X screensaver"), &(cfdata->enable_screensaver)); |
||||
e_widget_list_object_append(o, ob, 1, 1, 0);
|
||||
|
||||
of = e_widget_framelist_add(evas, _("Screensaver Timer(s)"), 0); |
||||
|
||||
ob = e_widget_label_add(evas, _("Time until X screensaver starts")); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f minutes"), 1.0, 90.0, 1.0, 0,
|
||||
&(cfdata->timeout), NULL, 200); |
||||
e_widget_framelist_object_append(of, ob); |
||||
|
||||
e_widget_list_object_append(o, of, 1, 1, 0.5); |
||||
e_dialog_resizable_set(cfd->dia, 0); |
||||
|
||||
return o; |
||||
} |
||||
|
||||
/* advanced window */ |
||||
static int |
||||
_advanced_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
if (!cfdata) return 0; |
||||
_apply_data(cfd, cfdata); |
||||
e_config_save_queue(); |
||||
return 1; |
||||
} |
||||
|
||||
static Evas_Object * |
||||
_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata) |
||||
{ |
||||
Evas_Object *o, *of, *ob; |
||||
E_Radio_Group *rg; |
||||
o = e_widget_list_add(evas, 0, 0); |
||||
|
||||
ob = e_widget_check_add(evas, _("Enable X screensaver"), &(cfdata->enable_screensaver)); |
||||
e_widget_list_object_append(o, ob, 1, 1, 0);
|
||||
|
||||
of = e_widget_framelist_add(evas, _("Screensaver Timer(s)"), 0); |
||||
|
||||
ob = e_widget_label_add(evas, _("Time until X screensaver starts")); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f minutes"), |
||||
1.0, 90.0, 1.0, 0, &(cfdata->timeout), NULL, 200); |
||||
e_widget_framelist_object_append(of, ob); |
||||
|
||||
ob = e_widget_label_add(evas, _("Time until X screensaver alternates")); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f seconds"), |
||||
1.0, 300.0, 1.0, 0, &(cfdata->interval), NULL, 200); |
||||
e_widget_framelist_object_append(of, ob); |
||||
e_widget_list_object_append(o, of, 1, 1, 0.5); |
||||
|
||||
of = e_widget_framelist_add(evas, _("Blanking"), 0); |
||||
rg = e_widget_radio_group_new(&(cfdata->blanking)); |
||||
ob = e_widget_radio_add(evas, _("Default"), E_CONFIG_BLANKING_DEFAULT, rg); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_radio_add(evas, _("Preferred"), E_CONFIG_BLANKING_PREFERRED, rg); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_radio_add(evas, _("Not Preferred"), E_CONFIG_BLANKING_NOT_PREFERRED, rg); |
||||
e_widget_framelist_object_append(of, ob); |
||||
e_widget_list_object_append(o, of, 1, 1, 0.5); |
||||
|
||||
of = e_widget_framelist_add(evas, _("Exposure Events"), 0); |
||||
rg = e_widget_radio_group_new(&(cfdata->exposures)); |
||||
ob = e_widget_radio_add(evas, _("Default"), E_CONFIG_EXPOSURES_DEFAULT, rg); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_radio_add(evas, _("Allow"), E_CONFIG_EXPOSURES_ALLOWED, rg); |
||||
e_widget_framelist_object_append(of, ob); |
||||
ob = e_widget_radio_add(evas, _("Don't Allow"), E_CONFIG_EXPOSURES_NOT_ALLOWED, rg); |
||||
e_widget_framelist_object_append(of, ob); |
||||
e_widget_list_object_append(o, of, 1, 1, 0.5); |
||||