e/conf_randr: Move radio creation into the block that needs it.

Discussed with devilhorns.

SVN revision: 81339
This commit is contained in:
Stefan Schmidt 2012-12-19 09:47:40 +00:00
parent 43dca4ccd8
commit b2663a26fa
1 changed files with 3 additions and 3 deletions

View File

@ -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);