forked from enlightenment/enlightenment
e/conf_randr: Move radio creation into the block that needs it.
Discussed with devilhorns. SVN revision: 81339
This commit is contained in:
parent
43dca4ccd8
commit
b2663a26fa
|
@ -1052,15 +1052,15 @@ _e_smart_monitor_refresh_rates_fill(Evas_Object *obj)
|
|||
/* compare mode names */
|
||||
if (!strcmp(mode->name, sd->current.mode->name))
|
||||
{
|
||||
/* create radio group for rates */
|
||||
if (!rg) rg = e_widget_radio_group_new(&sd->current.refresh_rate);
|
||||
|
||||
if ((mode->hTotal) && (mode->vTotal))
|
||||
{
|
||||
Evas_Object *ow;
|
||||
double rate = 0.0;
|
||||
char buff[1024];
|
||||
|
||||
/* create radio group for rates */
|
||||
if (!rg) rg = e_widget_radio_group_new(&sd->current.refresh_rate);
|
||||
|
||||
/* calculate rate */
|
||||
rate = _e_smart_monitor_refresh_rate_get(mode);
|
||||
snprintf(buff, sizeof(buff), "%.1fHz", rate);
|
||||
|
|
Loading…
Reference in New Issue