forked from enlightenment/enlightenment
Fix up expand/fill for sliders (so they use all available width).
SVN revision: 47091
This commit is contained in:
parent
e3a0da1216
commit
3de8c6adbc
|
@ -10,7 +10,8 @@ struct _E_Config_Dialog_Data
|
||||||
int dismiss_alert;
|
int dismiss_alert;
|
||||||
int alert_timeout;
|
int alert_timeout;
|
||||||
int force_mode; // 0 == auto, 1 == batget, 2 == hal
|
int force_mode; // 0 == auto, 1 == batget, 2 == hal
|
||||||
struct {
|
struct
|
||||||
|
{
|
||||||
Evas_Object *show_alert_label;
|
Evas_Object *show_alert_label;
|
||||||
Evas_Object *show_alert_time;
|
Evas_Object *show_alert_time;
|
||||||
Evas_Object *show_alert_percent;
|
Evas_Object *show_alert_percent;
|
||||||
|
@ -48,8 +49,7 @@ e_int_config_battery_module(E_Container *con, const char *params __UNUSED__)
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "%s/e-module-battery.edj",
|
snprintf(buf, sizeof(buf), "%s/e-module-battery.edj",
|
||||||
e_module_dir_get(battery_config->module));
|
e_module_dir_get(battery_config->module));
|
||||||
cfd = e_config_dialog_new(con,
|
cfd = e_config_dialog_new(con, _("Battery Monitor Settings"),
|
||||||
_("Battery Monitor Settings"),
|
|
||||||
"E", "_e_mod_battery_config_dialog",
|
"E", "_e_mod_battery_config_dialog",
|
||||||
buf, 0, v, NULL);
|
buf, 0, v, NULL);
|
||||||
battery_config->config_dialog = cfd;
|
battery_config->config_dialog = cfd;
|
||||||
|
@ -188,7 +188,7 @@ _advanced_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_D
|
||||||
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f ticks"), 1, 256, 4, 0,
|
ob = e_widget_slider_add(evas, 1, 0, _("%1.0f ticks"), 1, 256, 4, 0,
|
||||||
NULL, &(cfdata->poll_interval), 100);
|
NULL, &(cfdata->poll_interval), 100);
|
||||||
e_widget_table_object_append(o, ob, 0, 1, 1, 1, 1, 0, 1, 0);
|
e_widget_table_object_append(o, ob, 0, 1, 1, 1, 1, 0, 1, 0);
|
||||||
e_widget_toolbook_page_append(otb, NULL, _("Polling"), o, 0, 0, 0, 0,
|
e_widget_toolbook_page_append(otb, NULL, _("Polling"), o, 1, 0, 1, 0,
|
||||||
0.5, 0.0);
|
0.5, 0.0);
|
||||||
|
|
||||||
o = e_widget_table_add(evas, 0);
|
o = e_widget_table_add(evas, 0);
|
||||||
|
@ -219,7 +219,7 @@ _advanced_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_D
|
||||||
|
|
||||||
_cb_show_alert_changed(cfdata, NULL);
|
_cb_show_alert_changed(cfdata, NULL);
|
||||||
|
|
||||||
e_widget_toolbook_page_append(otb, NULL, _("Alert"), o, 0, 0, 0, 0,
|
e_widget_toolbook_page_append(otb, NULL, _("Alert"), o, 1, 0, 1, 0,
|
||||||
0.5, 0.0);
|
0.5, 0.0);
|
||||||
|
|
||||||
o = e_widget_list_add(evas, 0, 0);
|
o = e_widget_list_add(evas, 0, 0);
|
||||||
|
@ -232,7 +232,7 @@ _advanced_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_D
|
||||||
ob = e_widget_radio_add(evas, _("HAL"), 2, rg);
|
ob = e_widget_radio_add(evas, _("HAL"), 2, rg);
|
||||||
e_widget_list_object_append(o, ob, 1, 0, 0.0);
|
e_widget_list_object_append(o, ob, 1, 0, 0.0);
|
||||||
|
|
||||||
e_widget_toolbook_page_append(otb, NULL, _("Hardware"), o, 0, 0, 0, 0,
|
e_widget_toolbook_page_append(otb, NULL, _("Hardware"), o, 1, 0, 1, 0,
|
||||||
0.5, 0.0);
|
0.5, 0.0);
|
||||||
|
|
||||||
e_widget_toolbook_page_show(otb, 0);
|
e_widget_toolbook_page_show(otb, 0);
|
||||||
|
|
Loading…
Reference in New Issue